Skip to content

Commit

Permalink
sync content/zh-cn/docs/concepts/services-networking/dual-stack.md
Browse files Browse the repository at this point in the history
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
  • Loading branch information
bzsuni committed Aug 7, 2023
1 parent b367e41 commit 51a5ea4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/zh-cn/docs/concepts/services-networking/dual-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ These examples demonstrate the behavior of various dual-stack Service configurat
[无头服务](/zh-cn/docs/concepts/services-networking/service/#headless-services)的行为方式
与此相同。)

{{% codenew file="service/networking/dual-stack-default-svc.yaml" %}}
{{% code file="service/networking/dual-stack-default-svc.yaml" %}}

<!--
1. This Service specification explicitly defines `PreferDualStack` in `.spec.ipFamilyPolicy`. When
Expand Down Expand Up @@ -298,7 +298,7 @@ These examples demonstrate the behavior of various dual-stack Service configurat
* 对于启用了双协议栈的集群,将 `.spec.ipFamilyPolicy` 设置为
`RequireDualStack` 时,其行为与 `PreferDualStack` 相同。

{{% codenew file="service/networking/dual-stack-preferred-svc.yaml" %}}
{{% code file="service/networking/dual-stack-preferred-svc.yaml" %}}

<!--
1. This Service specification explicitly defines `IPv6` and `IPv4` in `.spec.ipFamilies` as well
Expand All @@ -312,7 +312,7 @@ These examples demonstrate the behavior of various dual-stack Service configurat
`.spec.ClusterIP` 被设置成 IPv6 地址,因为它是 `.spec.ClusterIPs` 数组中的第一个元素,
覆盖其默认值。

{{% codenew file="service/networking/dual-stack-preferred-ipfamilies-svc.yaml" %}}
{{% code file="service/networking/dual-stack-preferred-ipfamilies-svc.yaml" %}}

<!--
#### Dual-stack defaults on existing Services
Expand All @@ -337,7 +337,7 @@ dual-stack.)
`.spec.ipFamilyPolicy``SingleStack` 并设置 `.spec.ipFamilies`
为服务的当前地址族。

{{% codenew file="service/networking/dual-stack-default-svc.yaml" %}}
{{% code file="service/networking/dual-stack-default-svc.yaml" %}}

<!--
You can validate this behavior by using kubectl to inspect an existing service.
Expand Down Expand Up @@ -387,7 +387,7 @@ dual-stack.)
并设置 `.spec.ipFamilies` 为第一个服务集群 IP 范围的地址族(通过配置 kube-apiserver 的
`--service-cluster-ip-range` 参数),即使 `.spec.ClusterIP` 的设置值为 `None` 也如此。

{{% codenew file="service/networking/dual-stack-default-svc.yaml" %}}
{{% code file="service/networking/dual-stack-default-svc.yaml" %}}

<!--
You can validate this behavior by using kubectl to inspect an existing headless service with selectors.
Expand Down

0 comments on commit 51a5ea4

Please sign in to comment.