kubectl config get-contexts

From wikieduonline
Revision as of 20:22, 28 September 2022 by Welcome (talk | contribs) (→‎Related)
Jump to navigation Jump to search

kubectl config get-contexts -o name
kubectl config get-contexts
CURRENT   NAME                                                  CLUSTER                           AUTHINFO                             NAMESPACE
*         [email protected]@YOUR_CLUSTER.eu-central-1.eksctl.io   CLUSTER.eu-central-1.eksctl.io   [email protected]@YOUR_CLUSTER.eu-central-1.eksctl.io
kubectl config get-contexts -o name
gke_myproject-o_europe-west3-b_cluster_name
user@[email protected].eksctl.io

Related

kubectl config set-context
kubectl config use-context

See also

Advertising: