kubectl 1.37 · Clusters and contexts
List contexts
Show the clusters and users in your kubeconfig. The current one is starred.
kubectl config get-contexts
Official kubectl 1.37 documentation
More clusters and contexts commands
- Check the client version
- Check the cluster
- Show the current context
- Switch cluster
- Set the default namespace
All clusters and contexts commands · kubectl 1.37 cheatsheet