Skip to content

Instantly share code, notes, and snippets.

@thuandt
Created November 20, 2016 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thuandt/ae4906c919d06904945d8862f3bb7ebf to your computer and use it in GitHub Desktop.
Save thuandt/ae4906c919d06904945d8862f3bb7ebf to your computer and use it in GitHub Desktop.
Working with GKE cluster using Google Cloud SDK

GCP & GKE setup

$ gcloud auth application-default login
$ gcloud config set core/project ${GCP_PROJECT}
$ gcloud config set core/account ${SERVICE_ACCOUNT}
$ gcloud config set compute/region ${REGION}
$ gcloud config set compute/zone ${ZONE}
$ gcloud config set container/cluster ${CLUSTER_NAME}
# gcloud config set container/use_client_certificate True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment