Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

gcloud set kubectl context

#Assuming you have gcloud CLI installed and the default zone set
gcloud container clusters set-credentials cluster-name

#Configuring a cluster in a different zone from the default
gcloud container clusters set-crendentials cluster-name --zone=us-west1

#or

gcloud container clusters set-crendentials cluster-name --region=us-west1
Source by cloud.google.com #
 
PREVIOUS NEXT
Tagged: #gcloud #set #kubectl #context
ADD COMMENT
Topic
Name
9+7 =