What does the oc config view command display?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

What does the oc config view command display?

Explanation:
oc config view shows the kubeconfig contents that OpenShift uses. It displays the current-context and the full details of clusters, users, and contexts defined in the kubeconfig, along with any preferences. This is why it’s the best answer: you can see which cluster you’re authenticated against and which user is in use, plus how the contexts are arranged. It doesn’t list namespaces, node statuses, or API resources—those come from other commands like oc get namespaces, oc get nodes, or oc api-resources.

oc config view shows the kubeconfig contents that OpenShift uses. It displays the current-context and the full details of clusters, users, and contexts defined in the kubeconfig, along with any preferences. This is why it’s the best answer: you can see which cluster you’re authenticated against and which user is in use, plus how the contexts are arranged. It doesn’t list namespaces, node statuses, or API resources—those come from other commands like oc get namespaces, oc get nodes, or oc api-resources.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy