Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created March 22, 2022 14: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 developer-guy/ed79064841f8619027b383bcf10333bc to your computer and use it in GitHub Desktop.
Save developer-guy/ed79064841f8619027b383bcf10333bc to your computer and use it in GitHub Desktop.
create gke cluster with workload identity enabled
$ export PROJECT_ID=$(gcloud config get-value project)
$ export CLUSTER_NAME="gke-wif"
$ gcloud container clusters create $CLUSTER_NAME \
 --workload-pool=$PROJECT_ID.svc.id.goog --num-nodes=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment