kubernetes Switching Between Different Kubernetes Clusters I'm sure you're only here because you cannot remember the command to switch between contexts on the command line right? jotcode 4 Jul 2021 · 1 min read So you have more than one cluster, perhaps one for staging and one for production? I'm sure you're only here because you cannot remember the command to switch between contexts on the command line right?Well here it is!Show the current Context:kubectl config current-contextShow Current ContextDisplay all the Contexts in a kubeconfig file:kubectl config get-contextsDisplay Contents In Config FileSwitch to a different Context:kubectl config use-context <context-name>Switch To Different Context kubernetes