zh-translation:/docs/setup/platform-setup/gke/index.md (#5412)

* zh-translation:/docs/setup/platform-setup/gke/index.md

* zh-translation:/docs/setup/platform-setup/gke/index.md

spaces
This commit is contained in:
Arun 2019-11-07 22:52:51 +08:00 committed by Istio Automation
parent 2d36dc1878
commit 980bf6048e
1 changed files with 19 additions and 23 deletions

View File

@ -1,28 +1,28 @@
---
title: Google Kubernetes Engine
description: Instructions to setup a Google Kubernetes Engine cluster for Istio.
title: 使用 Google Kubernetes Engine 快速开始
description: 在 Google Kubernetes Engine (GKE) 上快速搭建 Istio 服务。
weight: 15
skip_seealso: true
aliases:
- /docs/setup/kubernetes/prepare/platform-setup/gke/
- /docs/setup/kubernetes/platform-setup/gke/
- /zh/docs/setup/kubernetes/prepare/platform-setup/gke/
- /zh/docs/setup/kubernetes/platform-setup/gke/
keywords: [platform-setup,kubernetes,gke,google]
---
{{< tip >}}
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 GKE](https://cloud.google.com/istio/docs/istio-on-gke/overview)
for more information.
Google 为 GKE 提供了一个插件,
您可以使用它来代替手动安装 Istio。
要确定该插件是否适合您,请参阅 [Istio on GKE](https://cloud.google.com/istio/docs/istio-on-gke/overview)
以获得更多信息。
{{< /tip >}}
Follow these instructions to prepare a GKE cluster for Istio.
依照以下操作指南为安装 Istio 准备一个 GKE 集群。
{{< warning >}}
To enable SDS in Istio, use Kubernetes 1.13 or above.
需要在 Istio 中启用 SDS请使用 Kubernetes 1.13 或更高版本。
{{< /warning >}}
1. Create a new cluster.
1. 创建一个新集群。
{{< text bash >}}
$ gcloud container clusters create <cluster-name> \
@ -34,20 +34,18 @@ To enable SDS in Istio, use Kubernetes 1.13 or above.
{{< /text >}}
{{< tip >}}
The default installation of Mixer requires nodes with >1 vCPU. If you are
installing with the
[demo configuration profile](/docs/setup/additional-setup/config-profiles/),
you can remove the `--machine-type` argument to use the smaller `n1-standard-1` machine size instead.
默认安装 Mixer 要求节点的 vCPU 大于 1。
如果您要使用 [演示配置文件](/zh/docs/setup/additional-setup/config-profiles/)
您可以删除 `--machine-type` 参数,以使用较小 `n1-standard-1` 机器配置代替。
{{< /tip >}}
{{< warning >}}
To use the Istio CNI feature, the
[network-policy](https://cloud.google.com/kubernetes-engine/docs/how-to/network-policy)
GKE feature must be enabled in the cluster. Use the `--enable-network-policy` flag in
the `gcloud container clusters create` command.
如果需要使用 Istio CNI 功能,
需要在 `gcloud container clusters create` 命令中加入 `--enable-network-policy` 参数,
以启用 GKE 集群的 [network-policy](https://cloud.google.com/kubernetes-engine/docs/how-to/network-policy) 功能。
{{< /warning >}}
1. Retrieve your credentials for `kubectl`.
1. `kubectl` 获取认证凭据。
{{< text bash >}}
$ gcloud container clusters get-credentials <cluster-name> \
@ -55,9 +53,7 @@ To enable SDS in Istio, use Kubernetes 1.13 or above.
--project <project-id>
{{< /text >}}
1. Grant cluster administrator (admin) permissions to the current user. To
create the necessary RBAC rules for Istio, the current user requires admin
permissions.
1. 为了给 Istio 创建 RBAC 规则需要给当前用户赋予集群管理员admin权限因此这里进行授权操作。
{{< text bash >}}
$ kubectl create clusterrolebinding cluster-admin-binding \