hardkubectl
Modify a kubeconfig context to set its default namespace or cluster
command
kubectl config set-context CONTEXT_NAME --namespace NAMESPACEalso accepted
kubectl config set-contextkubectl config set-context CONTEXT_NAMEcommand
kubectl config set-context CONTEXT_NAME --namespace NAMESPACEalso accepted
kubectl config set-contextkubectl config set-context CONTEXT_NAMETest your recall — not just your reading.
Practice with interactive quiz →