Last active
January 23, 2018 07:05
-
-
Save svarcoe/b8a81654c02b17d616489bea45caa928 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
gcloud alpha container clusters create svcluster --preemptible --num-nodes 2 --image-type UBUNTU --cluster-version 1.8.5-gke.0 --enable-kubernetes-alpha | |
# Install helm | |
kubectl create serviceaccount --namespace kube-system tiller | |
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
helm init --service-account tiller | |
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' | |
#Install istio | |
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$(gcloud config get-value core/account) | |
curl -L https://git.io/getLatestIstio | sh - | |
cd $(/bin/ls | grep istio) | |
kubectl apply -f install/kubernetes/istio-auth.yaml | |
gcloud iam service-accounts create cluster-shutdown-sa --display-name "Cluster Shutdown Job" | |
gcloud projects add-iam-policy-binding my-project-1493587602578 --member serviceAccount:cluster-shutdown-sa@my-project-1493587602578.iam.gserviceaccount.com --role roles/container.clusterAdmin | |
gcloud iam service-accounts keys create key.json --iam-account cluster-shutdown-sa@my-project-1493587602578.iam.gserviceaccount.com | |
kubectl create secret generic cluster-shutdown-key --from-file=key.json=key.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment