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