istio.io/content/docs/setup/kubernetes/platform-setup/gke/index.md

1.3 KiB

title description weight skip_seealso keywords
Google Kubernetes Engine Instructions to setup a Google Kubernetes Engine cluster for Istio. 15 true
platform-setup
kubernetes
gke
google

Follow these instructions to prepare an GKE cluster for Istio.

  1. Create a new cluster.

    {{< text bash >}} $ gcloud container clusters create
    --cluster-version latest
    --num-nodes 4
    --zone
    --project {{< /text >}}

    • {{< warning_icon >}} to use the Istio CNI feature, the network-policy GKE feature must be enabled in the cluster. Use the --enable-network-policy flag in the gcloud container clusters create command.
  2. Retrieve your credentials for kubectl.

    {{< text bash >}} $ gcloud container clusters get-credentials
    --zone
    --project {{< /text >}}

  3. Grant cluster administrator (admin) permissions to the current user. To create the necessary RBAC rules for Istio, the current user requires admin permissions.

    {{< text bash >}} $ kubectl create clusterrolebinding cluster-admin-binding
    --clusterrole=cluster-admin
    --user=$(gcloud config get-value core/account) {{< /text >}}