Kubectl - Config Set Context

If you have spent more than five minutes in the Kubernetes ecosystem, you have likely experienced the dreaded "Wrong Cluster Panic."

Add this to your ~/.zshrc or ~/.bashrc : kubectl config set context

kubectl config set-context [NAME] --cluster=[CLUSTER] --user=[USER] --namespace=[NAMESPACE] Imagine you have a production cluster named prod-us-east and a user named prod-admin . You want a quick way to switch to the payment namespace. If you have spent more than five minutes

We have all been there.