How to switch to a different Kubernetes context or namespace?
To list available contexts:
kubectl config get-contextsTo show the current context:
kubectl config current-contextTo switch to a new context:
kubectl config use-context my-cluster-nameTo switch to a new namespace:
kubectl config set-context --current --namespace=my-namespace
See more at the kubectl Cheat Sheet.