Guest User

Untitled

a guest
Apr 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # change to match your environment
  2. ISTIO_HOME="/Applications/istio-0.7.1"
  3. GCP_DEPLOYMENT_MANAGER="$ISTIO_HOME/install/gcp/deployment_manager"
  4. GCP_PROJECT="springdemo-199819"
  5. GKE_CLUSTER="election-nonprod-cluster"
  6. ISTIO_VER="0.7.1"
  7. GCP_ZONE="us-east1-b"
  8. NODE_COUNT="2"
  9. INSTANCE_TYPE="n1-standard-1"
  10.  
  11. # deploy gke istio cluster
  12. gcloud deployment-manager deployments create springdemo-istio-demo-deployment \
  13. --template=$GCP_DEPLOYMENT_MANAGER/istio-cluster.jinja \
  14. --properties "gkeClusterName:$GKE_CLUSTER,installIstioRelease:$ISTIO_VER,"\
  15. "zone:$GCP_ZONE,initialNodeCount:$NODE_COUNT,instanceType:$INSTANCE_TYPE,"\
  16. "enableAutomaticSidecarInjection:false,enableMutualTLS:true,enableBookInfoSample:false"
  17.  
  18. # get creds for cluster
  19. gcloud container clusters get-credentials $GKE_CLUSTER \
  20. --zone $GCP_ZONE --project $GCP_PROJECT
Add Comment
Please, Sign In to add comment