- Google Kubernetes Engine
Google Kubernetes Engine
Google offers an add-on for GKE,which you can use instead of installing Istio manually.To determine if the add-on is right for you, refer to Istio on GKEfor more information.
Follow these instructions to prepare a GKE cluster for Istio.
To enable SDS in Istio, use Kubernetes 1.13 or above.
- Create a new cluster.
$ gcloud container clusters create <cluster-name> \
--cluster-version latest \
--machine-type=n1-standard-2 \
--num-nodes 4 \
--zone <zone> \
--project <project-id>
The default installation of Mixer requires nodes with >1 vCPU. If you areinstalling with thedemo configuration profile,you can remove the —machine-type
argument to use the smaller n1-standard-1
machine size instead.
To use the Istio CNI feature, thenetwork-policyGKE feature must be enabled in the cluster. Use the —enable-network-policy
flag inthe gcloud container clusters create
command.
- Retrieve your credentials for
kubectl
.
$ gcloud container clusters get-credentials <cluster-name> \
--zone <zone> \
--project <project-id>
- Grant cluster administrator (admin) permissions to the current user. Tocreate the necessary RBAC rules for Istio, the current user requires adminpermissions.
$ kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin \
--user=$(gcloud config get-value core/account)