Point kubectl to a GKE cluster
CautionAdds the credentials of the cluster to your kubeconfig and makes it the current kubectl context.
gcloud container clusters get-credentials clusterEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/gcloud.md), licensed under CC BY 4.0.