📜  gcloud set kubectl context - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:50.438000             🧑  作者: Mango

代码示例1
#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