Skip to content

Instantly share code, notes, and snippets.

@toksdotdev
Created December 10, 2020 17:52
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 toksdotdev/985074e63fc17023175541b9e61bf513 to your computer and use it in GitHub Desktop.
Save toksdotdev/985074e63fc17023175541b9e61bf513 to your computer and use it in GitHub Desktop.
Setup GCloud & Kubernetes environment easily
PROJECT_ID=boringcompany
GCLOUD_K8_ZONE=us-central1-c
GCLOUD_K8_CLUSTER=production
gcloud auth login
gcloud auth configure-docker
gcloud config set project $PROJECT_ID
gcloud container clusters get-credentials $GCLOUD_K8_CLUSTER --zone $GCLOUD_K8_ZONE --project $PROJECT_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment