Skip to content

Instantly share code, notes, and snippets.

@swiftdiaries
Created November 13, 2018 14:43
Show Gist options
  • Save swiftdiaries/9ccc1223614e8b0cf2dec95ea1282210 to your computer and use it in GitHub Desktop.
Save swiftdiaries/9ccc1223614e8b0cf2dec95ea1282210 to your computer and use it in GitHub Desktop.
Create a GKE cluster for Pipeline
gcloud auth login
gcloud config set project [your-project-id]
# Set your default zone.
gcloud config set compute/zone us-central1-a
# Create a cluster
CLUSTER_NAME=[YOUR-CLUSTER-NAME]
gcloud container clusters create $CLUSTER_NAME \
--zone us-central1-a \
--scopes cloud-platform \
--enable-cloud-logging \
--enable-cloud-monitoring \
--machine-type n1-standard-2 \
--num-nodes 4
# Create a clusterrolebinding
kubectl create clusterrolebinding ml-pipeline-admin-binding --clusterrole=cluster-admin --user=$(gcloud config get-value account)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment