You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IPv4/IPv6 dual-stack networking enables the allocation of both IPv4 and IPv6 addresses to {{< glossary_tooltip text="Pods" term_id="pod" >}} and {{< glossary_tooltip text="Services" term_id="service" >}}.
@@ -91,12 +91,6 @@ The following prerequisites are needed in order to utilize IPv4/IPv6 dual-stack
91
91
-->
92
92
## 配置 IPv4/IPv6 双协议栈
93
93
94
-
<!--
95
-
To use IPv4/IPv6 dual-stack, ensure the `IPv6DualStack` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled for the relevant components of your cluster. (Starting in 1.21, IPv4/IPv6 dual-stack defaults to enabled.)
@@ -161,16 +159,14 @@ set the `.spec.ipFamilyPolicy` field to one of the following values:
161
159
<!--
162
160
* `SingleStack`: Single-stack service. The control plane allocates a cluster IP for the Service, using the first configured service cluster IP range.
163
161
* `PreferDualStack`:
164
-
* Allocates IPv4 and IPv6 cluster IPs for the Service. (If the cluster has `--feature-gates="IPv6DualStack=false"`, this setting follows the same behavior as `SingleStack`.)
162
+
* Allocates IPv4 and IPv6 cluster IPs for the Service.
165
163
* `RequireDualStack`: Allocates Service `.spec.ClusterIPs` from both IPv4 and IPv6 address ranges.
166
164
* Selects the `.spec.ClusterIP` from the list of `.spec.ClusterIPs` based on the address family of the first element in the `.spec.ipFamilies` array.
167
165
-->
168
166
169
167
*`SingleStack`:单栈服务。控制面使用第一个配置的服务集群 IP 范围为服务分配集群 IP。
@@ -278,11 +274,10 @@ These examples demonstrate the behavior of various dual-stack Service configurat
278
274
#### 现有服务的双栈默认值
279
275
280
276
<!--
281
-
These examples demonstrate the default behavior when dual-stack is newly enabled on a cluster where Services already exist. (Upgrading an existing cluster to 1.21 will enable dual-stack unless `--feature-gates="IPv6DualStack=false"` is set.)
277
+
These examples demonstrate the default behavior when dual-stack is newly enabled on a cluster where Services already exist. (Upgrading an existing cluster to 1.21 or beyond will enable dual-stack.)
282
278
-->
283
279
下面示例演示了在服务已经存在的集群上新启用双栈时的默认行为。
284
-
(将现有集群升级到 1.21 会启用双协议栈支持,除非设置了
285
-
`--feature-gates="IPv6DualStack=false"`)
280
+
(将现有集群升级到 1.21 或者更高版本会启用双协议栈支持。)
286
281
287
282
<!--
288
283
1. When dual-stack is enabled on a cluster, existing Services (whether `IPv4` or `IPv6`) are configured by the control plane to set `.spec.ipFamilyPolicy` to `SingleStack` and set `.spec.ipFamilies` to the address family of the existing Service. The existing Service cluster IP will be stored in `.spec.ClusterIPs`.
0 commit comments