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
Copy file name to clipboardExpand all lines: content/zh-cn/docs/concepts/services-networking/dual-stack.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,16 +177,16 @@ Service 的地址族默认为第一个服务集群 IP 范围的地址族(通
177
177
<!--
178
178
* `SingleStack`: Single-stack service. The control plane allocates a cluster IP for the Service,
179
179
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.
183
182
* Selects the `.spec.ClusterIP` from the list of `.spec.ClusterIPs` based on the address family
184
183
of the first element in the `.spec.ipFamilies` array.
185
184
-->
186
185
*`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`。
0 commit comments