#!/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