hardkubectl

Rename a kubectl context in the kubeconfig file

command

kubectl config rename-context OLD_NAME NEW_NAME

also accepted

kubectl config rename-context

Test your recall — not just your reading.

Practice with interactive quiz →