Last active
December 26, 2017 13:58
-
-
Save garystafford/6d953a56869df040c19505e718024734 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# create gke cluster | |
gcloud beta container \ | |
clusters create "voter-api-istio-demo" \ | |
--project "voter-api-kub-demo" \ | |
--enable-kubernetes-alpha \ | |
--cluster-version "1.8.4-gke.1" \ | |
--username="admin" \ | |
--zone "us-east1-b" \ | |
--node-locations "us-east1-b","us-east1-c","us-east1-d" \ | |
--machine-type "n1-standard-1" \ | |
--num-nodes "1" \ | |
--labels environment=development \ | |
--enable-cloud-logging \ | |
--enable-cloud-monitoring | |
# retrieve cluster credentials | |
gcloud container clusters get-credentials voter-api-istio-demo \ | |
--zone us-east1-b --project voter-api-kub-demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment