- Google Kubernetes Engine
Google Kubernetes Engine
依照本指南对 GKE 集群进行配置以便安装运行 Istio。
- 创建一个新集群:
$ gcloud container clusters create <cluster-name> \--cluster-version latest \--num-nodes 4 \--zone <zone> \--project <project-id>
如果要使用 Istio 的 CNI 功能,需要在前面的命令中加入 —enable-network-policy 参数,以启用 GKE 的 network-policy 支持,。
- 为
kubectl获取认证凭据:
$ gcloud container clusters get-credentials <cluster-name> \--zone <zone> \--project <project-id>
- 为了给 Istio 创建 RBAC 规则,需要给当前用户赋予集群管理员权限,因此这里进行授权操作:
$ kubectl create clusterrolebinding cluster-admin-binding \--clusterrole=cluster-admin \--user=$(gcloud config get-value core/account)
