Editing Gcloud container clusters get-credentials
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | |||
− | |||
[[gcloud container clusters]] get-credentials | [[gcloud container clusters]] get-credentials | ||
[[gcloud container clusters]] get-credentials [[MyClusterName]] | [[gcloud container clusters]] get-credentials [[MyClusterName]] | ||
gcloud container clusters get-credentials MyClusterName [[--zone]] [[europe-west3-b]] | gcloud container clusters get-credentials MyClusterName [[--zone]] [[europe-west3-b]] | ||
gcloud container clusters get-credentials MyClusterName [[--region]] [[europe-west3-c]] | gcloud container clusters get-credentials MyClusterName [[--region]] [[europe-west3-c]] | ||
− | |||
− | |||
== Example == | == Example == | ||
Line 17: | Line 13: | ||
[[kubectl config get-contexts]] | [[kubectl config get-contexts]] | ||
[[kubectl config use-context]] | [[kubectl config use-context]] | ||
− | + | ||
== Errors == | == Errors == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
gcloud container clusters get-credentials | gcloud container clusters get-credentials | ||
ERROR: (gcloud.container.clusters.get-credentials) argument NAME: Must be specified. | ERROR: (gcloud.container.clusters.get-credentials) argument NAME: Must be specified. | ||
Line 32: | Line 22: | ||
For detailed information on this command and its flags, run: | For detailed information on this command and its flags, run: | ||
− | + | gcloud container clusters get-credentials --help | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related == | == Related == | ||
Line 52: | Line 29: | ||
* <code>[[kubectl get pods]]</code> | * <code>[[kubectl get pods]]</code> | ||
* <code>[[aws eks update-kubeconfig --name my-eks-cluster-name]]</code> | * <code>[[aws eks update-kubeconfig --name my-eks-cluster-name]]</code> | ||
− | * <code>[[ | + | * <code>[[$HOME/.kube/config]]</code> |
* <code>[[gcloud config set account]]</code> | * <code>[[gcloud config set account]]</code> | ||
* [[Provide access to GKE cluster]] | * [[Provide access to GKE cluster]] | ||
− | |||
− | |||
== See also == | == See also == |
Advertising: