Skip to content

Commit d5a9e7b

Browse files
authored
Merge pull request #46601 from Yanping-io/patch2
[zh] sync docs/concepts/services-networking/dual-stack.md
2 parents 4b55cf4 + bae558b commit d5a9e7b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/zh-cn/docs/concepts/services-networking/dual-stack.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,16 @@ Service 的地址族默认为第一个服务集群 IP 范围的地址族(通
177177
<!--
178178
* `SingleStack`: Single-stack service. The control plane allocates a cluster IP for the Service,
179179
using the first configured service cluster IP range.
180-
* `PreferDualStack`:
181-
* Allocates IPv4 and IPv6 cluster IPs for the Service.
182-
* `RequireDualStack`: Allocates Service `.spec.ClusterIPs` from both IPv4 and IPv6 address ranges.
180+
* `PreferDualStack`:Allocates both IPv4 and IPv6 cluster IPs for the Service when dual-stack is enabled. If dual-stack is not enabled or supported, it falls back to single-stack behavior.
181+
* `RequireDualStack`: Allocates Service `.spec.clusterIPs` from both IPv4 and IPv6 address ranges when dual-stack is enabled. If dual-stack is not enabled or supported, the Service API object creation fails.
183182
* Selects the `.spec.ClusterIP` from the list of `.spec.ClusterIPs` based on the address family
184183
of the first element in the `.spec.ipFamilies` array.
185184
-->
186185
* `SingleStack`:单栈 Service。控制面使用第一个配置的服务集群 IP 范围为 Service 分配集群 IP。
187-
* `PreferDualStack`
188-
* 为 Service 分配 IPv4 和 IPv6 集群 IP 地址。
189-
* `RequireDualStack`:从 IPv4 和 IPv6 的地址范围分配 Service 的 `.spec.ClusterIPs`
186+
* `PreferDualStack`:启用双栈时,为 Service 同时分配 IPv4 和 IPv6 集群 IP 地址。
187+
如果双栈未被启用或不被支持,则会返回到单栈行为。
188+
* `RequireDualStack`:启用双栈时,同时从 IPv4 和 IPv6 的地址范围中分配 Service 的 `.spec.ClusterIPs`
189+
如果双栈未被启用或不被支持,则 Service API 对象创建失败。
190190
* 从基于在 `.spec.ipFamilies` 数组中第一个元素的地址族的 `.spec.ClusterIPs`
191191
列表中选择 `.spec.ClusterIP`
192192

0 commit comments

Comments
 (0)