[zh] Update multicluster/primary-remote/ (#14587)

This commit is contained in:
Michael 2024-02-15 20:26:41 +08:00 committed by GitHub
parent 53738929be
commit 0a82bbc680
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 13 deletions

View File

@ -8,9 +8,9 @@ test: yes
owner: istio/wg-environments-maintainers
---
按照本指南,在 `cluster1` 主集群({{< gloss >}}primary cluster{{< /gloss >}}
安装 Istio 控制平面,并设置 `cluster2` 从集群({{< gloss >}}remote cluster{{< /gloss >}}
指向 `cluster1` 的控制平面。两个集群都运行在 `network1` 网络上,
按照本指南,在 `cluster1` {{< gloss "primary cluster" >}}主集群{{< /gloss >}}安装
Istio 控制平面,并设置 `cluster2` {{< gloss "remote cluster" >}}从集群{{< /gloss >}}指向
`cluster1` 的控制平面。两个集群都运行在 `network1` 网络上,
所以两个集群的 Pod 之间,网络可直接连通。
继续安装之前,请先确认完成了[准备工作](/zh/docs/setup/install/multicluster/before-you-begin)中的步骤。
@ -27,7 +27,7 @@ owner: istio/wg-environments-maintainers
在此配置中,集群 `cluster1` 将监测两个集群 API Server 的服务端点。
以这种方式,控制平面就能为两个集群中的工作负载提供服务发现。
服务的工作负载( Pod 到 Pod )可跨集群边界直接通讯。
服务的工作负载Pod 到 Pod可跨集群边界直接通讯。
`cluster2` 中的服务将通过专用的[东西向](https://en.wikipedia.org/wiki/East-west_traffic)网关流量访问
`cluster1` 的控制平面。
@ -63,8 +63,8 @@ $ istioctl install --set values.pilot.env.EXTERNAL_ISTIOD=true --context="${CTX_
需要注意的是,当 `values.pilot.env.EXTERNAL_ISTIOD` 被设置为 `true` 时,
安装在 `cluster1` 上的控制平面也可以作为其他从集群的外部控制平面。
当这个功能被启用时,`istiod` 将试图获得领导权锁,并因此管理将附加到它的并且带有
[适当注解的](#set-the-control-plane-cluster-for-cluster2)从集群
当这个功能被启用时,`istiod` 将尝试获取领导权锁,
并因此管理将附加到它的并且带有[适当注解的](#set-the-control-plane-cluster-for-cluster2)从集群
(本例中为 `cluster2`)。
## 在 `cluster1` 安装东西向网关 {#install-the-east-west-gateway-in-cluster1}
@ -80,7 +80,7 @@ $ @samples/multicluster/gen-eastwest-gateway.sh@ \
{{< /text >}}
{{< warning >}}
如果控制面已经安装了一个修订版,可在 `gen-eastwest-gateway.sh` 命令中添加
如果控制面已经安装了一个修订版,可在 `gen-eastwest-gateway.sh` 命令中添加
`--revision rev` 标志。
{{< /warning >}}
@ -98,12 +98,12 @@ istio-eastwestgateway LoadBalancer 10.80.6.124 34.75.71.237 ... 51
以便 `cluster2` 中的服务能访问到服务发现:
{{< text bash >}}
$ kubectl apply --context="${CTX_CLUSTER1}" -f \
$ kubectl apply --context="${CTX_CLUSTER1}" -n istio-system -f \
@samples/multicluster/expose-istiod.yaml@
{{< /text >}}
{{< warning >}}
如果控制面指定了版本 `rev`, 需要改为执行
如果控制平面指定了版本 `rev`,需要改为执行以下命令:
{{< text bash >}}
$ sed 's/{{.Revision}}/rev/g' @samples/multicluster/expose-istiod-rev.yaml.tmpl@ | kubectl apply --context="${CTX_CLUSTER1}" -n istio-system -f -

View File

@ -7,9 +7,9 @@ test: yes
owner: istio/wg-environments-maintainers
---
按照本指南,在 `cluster1` 主集群({{< gloss >}}primary cluster{{< /gloss >}}
按照本指南,在 `cluster1` {{< gloss "primary cluster" >}}主集群{{< /gloss >}}
安装 Istio 控制平面,并配置 `cluster2`
从集群({{< gloss >}}remote cluster{{< /gloss >}}指向 `cluster1` 的控制平面。
{{< gloss "remote cluster" >}}从集群{{< /gloss >}}指向 `cluster1` 的控制平面。
集群 `cluster1``network1` 网络上,而集群 `cluster2``network2` 网络上。
所以跨集群边界的 Pod 之间,网络不能直接连通。
@ -66,7 +66,8 @@ $ istioctl install --set values.pilot.env.EXTERNAL_ISTIOD=true --context="${CTX_
请注意,`values.pilot.env.EXTERNAL_ISTIOD` 设置为 `true`
这将启用安装在 `cluster1` 上的控制平面,使其也用作其他从集群的外部控制平面。
启用此特性后,`istiod` 将尝试获取领导选举锁,
并因此管理[适当注解的](#set-the-control-plane-cluster-for-cluster2)且将接入的从集群(此处为 `cluster2`)。
并因此管理将附加到它的并且带有[适当注解的](#set-the-control-plane-cluster-for-cluster2)从集群
(本例中为 `cluster2`)。
## 在 `cluster1` 安装东西向网关 {#install-the-east-west-gateway-in-cluster1}
@ -105,7 +106,7 @@ $ kubectl apply --context="${CTX_CLUSTER1}" -n istio-system -f \
{{< /text >}}
{{< warning >}}
如果控制面指定了版本 `rev`, 需要改为执行
如果控制平面指定了版本 `rev`,需要改为执行以下命令:
{{< text bash >}}
$ sed 's/{{.Revision}}/rev/g' @samples/multicluster/expose-istiod-rev.yaml.tmpl@ | kubectl apply --context="${CTX_CLUSTER1}" -n istio-system -f -