Translate helm install (#2384)

* update translate helm-install

* update content

* update content

* update content

* update content

* update content
This commit is contained in:
shaobai 2018-08-25 19:51:57 +08:00 committed by istio-bot
parent 00a1b00152
commit c0152b4710
1 changed files with 40 additions and 10 deletions

View File

@ -3,6 +3,9 @@ title: 使用 Helm 进行安装
description: 使用内含的 Helm chart 安装 Istio。
weight: 30
keywords: [kubernetes,helm]
aliases:
- /zh/docs/setup/kubernetes/helm.html
- /zh/docs/tasks/integrating-services-into-istio.html
icon: /img/helm.svg
---
@ -12,13 +15,36 @@ icon: /img/helm.svg
## 先决条件
1. [下载 Istio 的发布版本](/zh/docs/setup/kubernetes/download-release/)。
1. [在 Kubernetes 中安装 Istio](/zh/docs/setup/kubernetes/platform-setup/)
1. [Kubernetes 平台设置](/zh/docs/setup/kubernetes/platform-setup/)
* [Minikube](/zh/docs/setup/kubernetes/platform-setup/minikube/)
* [Google 容器引擎 (GKE)](/zh/docs/setup/kubernetes/platform-setup/gke/)
* [IBM 云 Kubernetes 服务 (IKS)](/zh/docs/setup/kubernetes/platform-setup/ibm/)
* [OpenShift Origin](/zh/docs/setup/kubernetes/platform-setup/openshift/)
* [Amazon Web Services (AWS) with Kops](/zh/docs/setup/kubernetes/platform-setup/aws/)
* [Azure](/zh/docs/setup/kubernetes/platform-setup/azure/)
1. 在 Pods 和服务上检查对 [Pods 和服务的要求](/zh/docs/setup/kubernetes/spec-requirements/)。
1. [安装 Helm 客户端](https://docs.helm.sh/using_helm)。
1. 默认情况下Istio 使用 `负载均衡器` 服务对象类型。有些平台不支持 `负载均衡器` 服务对象类型。对于缺少 `负载均衡器` 支持的平台,安装需要带有 “`NodePort`” 支持的 Istio而不是在 Helm 操作完后追加 `--set gateways.istio-ingressgateway.type=NodePort --set gateways.istio-egressgateway.type=NodePort` 的标记。
## 安装步骤
要安装 Istio 的核心组件,您可以选择以下四个互斥选项之一。
1. 如果使用 Helm 2.10.0 之前的版本,通过 `kubectl apply` [自定义资源定义](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/#customresourcedefinitions),然后等待几秒钟,直到 kube-apiserver 中的 CRDs 提交完成:
但是,我们建议您在生产环境使用 [Helm Chart](/zh/docs/setup/kubernetes/helm-install/) 安装 Istio。通过此安装您可以利用所有选项来根据需要配置和自定义 Istio。
{{< text bash >}}
$ kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml
{{< /text >}}
> 如果您正在启用 `certmanager`,那么您还需要安装它的 CRDs并等待几秒钟以便在 kube-apiserver 中提交 CRDs :
{{< text bash >}}
$ kubectl apply -f install/kubernetes/helm/istio/charts/certmanager/templates/crds.yaml
{{< /text >}}
1. 从下面的两个选项中选择一个,**相互排斥** 选项描述如下
## 选项1通过 Helm 的 `helm template` 安装 Istio
@ -32,19 +58,17 @@ icon: /img/helm.svg
{{< text bash >}}
$ kubectl create namespace istio-system
$ kubectl create -f $HOME/istio.yaml
$ kubectl apply -f $HOME/istio.yaml
{{< /text >}}
## 选项2通过 Helm 和 Tiller 的 `helm install` 安装 Istio
此选项允许 Helm 和 [Tiller](https://github.com/kubernetes/helm/blob/master/docs/architecture.md#components) 管理 Istio 的生命周期。
{{< warning_icon >}} 使用 Helm 升级 Istio 还没有进行全面的测试。
1. 如果还没有为 Tiller 配置 service account请配置一个
{{< text bash >}}
$ kubectl create -f install/kubernetes/helm/helm-service-account.yaml
$ kubectl apply -f install/kubernetes/helm/helm-service-account.yaml
{{< /text >}}
1. 使用 service account 在您的集群中安装 Tiller
@ -91,17 +115,17 @@ istio-pilot-58c65f74bc-2f5xn 2/2 Running 0 1m
在这个最小集合之下,您安装您自己的应用并为实例[配置请求路由](/zh/docs/tasks/traffic-management/request-routing/)。
您需要[手动注入 sidecar](/zh/docs/setup/kubernetes/sidecar-injection/#手工注入-sidecar)。
[安装选项](/docs/reference/config/installation-options/) 中有选项的完整列表,可以让您根据自己的需要对 Istio 安装进行裁剪。
[安装选项](/docs/reference/config/installation-options/) 中有选项的完整列表,可以让您根据自己的需要对 Istio 安装进行裁剪。`helm install` 中使用 `--set` 覆盖默认参数之前,请先检查 `install/kubernetes/helm/istio/values.yaml` 中的配置项,并根据需要添加或删除备注。
## 卸载
* 对于选项1使用 `kubectl` 进行卸载:
* 对于选项 1使用 `kubectl` 进行卸载:
{{< text bash >}}
$ kubectl delete -f $HOME/istio.yaml
{{< /text >}}
* 对于选项2使用 Helm 进行卸载:
* 对于选项 2使用 Helm 进行卸载:
{{< text bash >}}
$ helm delete --purge istio
@ -112,3 +136,9 @@ istio-pilot-58c65f74bc-2f5xn 2/2 Running 0 1m
{{< text bash >}}
$ kubectl -n istio-system delete job --all
{{< /text >}}
* 如果需要,可以删除 CRDs
{{< text bash >}}
$ kubectl delete -f install/kubernetes/helm/istio/templates/crds.yaml -n istio-system
{{< /text >}}