hardkubectl

Modify a kubeconfig context to set its default namespace or cluster

command

kubectl config set-context CONTEXT_NAME --namespace NAMESPACE

also accepted

kubectl config set-contextkubectl config set-context CONTEXT_NAME

Test your recall — not just your reading.

Practice with interactive quiz →