Skip to content

Instantly share code, notes, and snippets.

@danehans
Last active August 15, 2018 17:39
Show Gist options
  • Save danehans/86df3b5c84009358b12f028cb90dcba9 to your computer and use it in GitHub Desktop.
Save danehans/86df3b5c84009358b12f028cb90dcba9 to your computer and use it in GitHub Desktop.
istio on gke steps

Install kubectl

https://kubernetes.io/docs/tasks/tools/install-kubectl/

Note: You can also use gcloud component install kubelet

Create the cluster with aplha features

gcloud container clusters create istio --num-nodes=1 --machine-type=n1-standard-4 --no-enable-legacy-authorization --enable-kubernetes-alpha

Get your kubectl credentials

gcloud container clusters get-credentials istio

Give your gcloud user permissions

kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user="$(gcloud config get-value core/account)"

Install istio

kubectl apply -f ~/Desktop/istio/istio-0.4.0/install/kubernetes/istio-auth.yaml

kubectl apply -f ~/Desktop/istio/istio-0.4.0/install/kubernetes/istio-initializer.yaml

Install bookinfo app

kubectl apply -f ~/Desktop/istio/istio-0.4.0/samples/bookinfo/kube/bookinfo.yaml

References

https://istio.io/docs/setup/kubernetes/quick-start.html

https://istio.io/docs/setup/kubernetes/sidecar-injection.html#automatic-sidecar-injection

https://cloud.google.com/sdk/gcloud/reference/container/

https://cloud.google.com/kubernetes-engine/docs/tutorials/istio-on-gke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment