Difference between revisions of "Gcloud container clusters get-credentials"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
  
 
== Errors ==
 
== Errors ==
 +
 +
[[gcloud container clusters]] get-credentials your-cluster-name --region europe-west3-b
 +
Fetching cluster endpoint and auth data.
 +
ERROR: (gcloud.container.clusters.get-credentials) [[ResponseError: code=403]], message=Required "[[container.clusters.get]]" permission(s) for "projects/your-project/zones/europe-west3-b/clusters/your-cluster-name".
 +
 +
 
  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.

Revision as of 14:34, 27 September 2022

gcloud container clusters get-credentials --help
gcloud container clusters get-credentials
gcloud container clusters get-credentials MyClusterName
gcloud container clusters get-credentials MyClusterName --zone europe-west3-b
gcloud container clusters get-credentials MyClusterName --region europe-west3-c

Example

gcloud container clusters get-credentials MyClusterName --zone europe-west3-b
Fetching cluster endpoint and auth data.
kubeconfig entry generated for MyClusterName.

Use new contexts to access the cluster:

kubectl config get-contexts
kubectl config use-context


Errors

gcloud container clusters get-credentials your-cluster-name --region europe-west3-b
Fetching cluster endpoint and auth data.
ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=403, message=Required "container.clusters.get" permission(s) for "projects/your-project/zones/europe-west3-b/clusters/your-cluster-name".


gcloud container clusters get-credentials
ERROR: (gcloud.container.clusters.get-credentials) argument NAME: Must be specified.
Usage: gcloud container clusters get-credentials NAME [optional flags]
  optional flags may be  --help | --internal-ip | --region | --zone 

For detailed information on this command and its flags, run:
  gcloud container clusters get-credentials --help

Related

See also

Advertising: