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