kubectl 1.37 · Clusters and contexts
Switch cluster
Make another context the default.
kubectl config use-context my-cluster
Official kubectl 1.37 documentation
More clusters and contexts commands
- Check the client version
- Check the cluster
- List contexts
- Show the current context
- Set the default namespace
All clusters and contexts commands · kubectl 1.37 cheatsheet