Kubernetes · Command
kubectl config use-context
Sets the current context in a kubeconfig file. Later kubectl commands use the selected context's cluster, user, and namespace settings.
Last updated
Syntax
kubectl config use-context CONTEXT_NAMEIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
kubectl config viewKUBECONFIG--kubeconfigcontextkubeconfig file