Skip to content

Commit ab051bf

Browse files
committed
[zh] sync enabling-service-topology.md
1 parent 62dcee8 commit ab051bf

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

content/zh-cn/docs/tasks/administer-cluster/enabling-service-topology.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,42 @@ title: 开启服务拓扑
33
content_type: task
44
min-kubernetes-server-version: 1.17
55
---
6+
<!--
7+
reviewers:
8+
- andrewsykim
9+
- johnbelamaric
10+
- imroc
11+
title: Enabling Service Topology
12+
content_type: task
13+
min-kubernetes-server-version: 1.17
14+
-->
615

716
<!-- overview -->
817
{{< feature-state for_k8s_version="v1.21" state="deprecated" >}}
18+
919
<!--
1020
This feature, specifically the alpha `topologyKeys` field, is deprecated since
1121
Kubernetes v1.21.
1222
[Topology Aware Hints](/docs/concepts/services-networking/topology-aware-hints/),
1323
introduced in Kubernetes v1.21, provide similar functionality.
1424
-->
15-
这项功能,特别是 Alpha 状态的 `topologyKeys` 字段,在 kubernetes v1.21 中已经弃用。
16-
在 kubernetes v1.21 加入的[拓扑感知提示](/zh-cn/docs/concepts/services-networking/topology-aware-hints/)
17-
提供了类似的功能。
18-
19-
## {{% heading "prerequisites" %}}
20-
21-
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
25+
这项功能,特别是 Alpha 状态的 `topologyKeys` 字段,在 Kubernetes v1.21 中已经弃用。
26+
在 Kubernetes v1.21
27+
加入的[拓扑感知提示](/zh-cn/docs/concepts/services-networking/topology-aware-hints/)提供了类似的功能。
2228

2329
<!--
2430
_Service Topology_ enables a {{< glossary_tooltip term_id="service">}} to route traffic based upon the Node
2531
topology of the cluster. For example, a service can specify that traffic be
2632
preferentially routed to endpoints that are on the same Node as the client, or
2733
in the same availability zone.
2834
-->
29-
30-
_服务拓扑(Service Topology)_ 使 {{< glossary_tooltip term_id="service" text="服务">}}
35+
**服务拓扑(Service Topology)** 使 {{< glossary_tooltip term_id="service">}}
3136
能够根据集群中的 Node 拓扑来路由流量。
3237
比如,服务可以指定将流量优先路由到与客户端位于同一节点或者同一可用区域的端点上。
3338

3439
## {{% heading "prerequisites" %}}
3540

36-
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
41+
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
3742

3843
<!--
3944
The following prerequisites are needed in order to enable topology aware service
@@ -42,42 +47,40 @@ routing:
4247
* Kubernetes v1.17 or later
4348
* Configure {{< glossary_tooltip text="kube-proxy" term_id="kube-proxy" >}} to run in iptables mode or IPVS mode
4449
-->
45-
需要下面列的先决条件,才能启用拓扑感知的服务路由:
50+
需要满足下列先决条件,才能启用拓扑感知的服务路由:
51+
52+
* Kubernetes 1.17 或更高版本
53+
* 配置 {{< glossary_tooltip text="kube-proxy" term_id="kube-proxy" >}} 以 iptables 或者 IPVS 模式运行
4654

47-
* Kubernetes 1.17 或更新版本
48-
* 配置 {{< glossary_tooltip text="kube-proxy" term_id="kube-proxy" >}} 以 iptables 或者 IPVS 模式运行
4955
<!-- steps -->
5056

5157
<!--
5258
## Enable Service Topology
59+
-->
60+
## 启用服务拓扑 {#enable-service-topology}
5361

5462
{{< feature-state for_k8s_version="v1.21" state="deprecated" >}}
5563

64+
<!--
5665
To enable service topology, enable the `ServiceTopology`
5766
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for all Kubernetes components:
5867
-->
59-
## 启用服务拓扑
60-
61-
{{< feature-state for_k8s_version="v1.21" state="deprecated" >}}
62-
63-
要启用服务拓扑功能,需要为所有 Kubernetes 组件启用 `ServiceTopology`
68+
要启用服务拓扑,需要为所有 Kubernetes 组件启用 `ServiceTopology`
6469
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
6570

6671
```
6772
--feature-gates="ServiceTopology=true`
6873
```
6974

70-
7175
## {{% heading "whatsnext" %}}
7276

7377
<!--
7478
* Read about [Topology Aware Hints](/docs/concepts/services-networking/topology-aware-hints/), the replacement for the `topologyKeys` field.
7579
* Read about [EndpointSlices](/docs/concepts/services-networking/endpoint-slices/)
7680
* Read about the [Service Topology](/docs/concepts/services-networking/service-topology/) concept
77-
* Read [Connecting Applications with Services](/docs/concepts/services-networking/connect-applications-service/)
81+
* Read [Connecting Applications with Services](/docs/tutorials/services/connect-applications-service/)
7882
-->
79-
8083
* 阅读[拓扑感知提示](/zh-cn/docs/concepts/services-networking/topology-aware-hints/),该技术是用来替换 `topologyKeys` 字段的。
8184
* 阅读[端点切片](/zh-cn/docs/concepts/services-networking/endpoint-slices)
8285
* 阅读[服务拓扑](/zh-cn/docs/concepts/services-networking/service-topology)概念
83-
* 阅读[通过服务来连接应用](/zh-cn/docs/concepts/services-networking/connect-applications-service/)
86+
* 阅读[使用 Service 连接到应用](/zh-cn/docs/tutorials/services/connect-applications-service/)

0 commit comments

Comments
 (0)