Difference between revisions of "Kubectl config get-contexts"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
  CURRENT  NAME                                                  CLUSTER                          AUTHINFO                            NAMESPACE
 
  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]]
 
  *        [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]]
  
  

Revision as of 11:40, 4 July 2022


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


kubectl config set-context
kubectl config use-context

Related

See also

Advertising: