Cluster contextKubernetes
kubectl config get-contexts
List kubeconfig contexts and highlight the active one.
Command
kubectl config get-contexts
Example usage
Review available contexts and switch between clusters.
kubectl config get-contexts
kubectl config use-context <context>
Related tags
Cluster contextk8skubectlclusters