ExamGecko
Question list
Search
Search

Question 60 - 5V0-23.20 discussion

Report
Export

Which kubectl command should be used to change the active vSphere namespace to namespace-01?

A.
kubectl config use-context namespace-01
Answers
A.
kubectl config use-context namespace-01
B.
kubectl describe ns namespace-01
Answers
B.
kubectl describe ns namespace-01
C.
kubectl get ns namespace-01
Answers
C.
kubectl get ns namespace-01
D.
kubectl config change-context namespace-01
Answers
D.
kubectl config change-context namespace-01
Suggested answer: A

Explanation:

A context element in a kubeconfig file is used to group access parameters under a convenient name.

Each context has three parameters: cluster, namespace, and user. By default, the kubectl commandline tool uses parameters from the current context to communicate with the cluster.

To choose the current context: kubectl config use-context ctx001

asked 16/09/2024
Ilias Akarkach
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first