Created
November 13, 2018 14:43
-
-
Save swiftdiaries/9ccc1223614e8b0cf2dec95ea1282210 to your computer and use it in GitHub Desktop.
Create a GKE cluster for Pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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