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

All clusters and contexts commands · kubectl 1.37 cheatsheet

Was this page helpful?