[zh] Resync topology-spread-constraints.md
parent
8a63f618b6
commit
c4771c976a
|
@ -276,10 +276,10 @@ your cluster. Those fields are:
|
||||||
|
|
||||||
{{< note >}}
|
{{< note >}}
|
||||||
<!--
|
<!--
|
||||||
The `nodeAffinityPolicy` is an alpha-level field added in 1.25. You can disable it by disabling the
|
The `nodeAffinityPolicy` is a beta-level field and enabled by default in 1.26. You can disable it by disabling the
|
||||||
`NodeInclusionPolicyInPodTopologySpread` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
|
`NodeInclusionPolicyInPodTopologySpread` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
|
||||||
-->
|
-->
|
||||||
`nodeAffinityPolicy` 是 1.25 中新增的一个 Alpha 级别字段。
|
`nodeAffinityPolicy` 是 1.26 中默认启用的一个 Beta 级别字段。
|
||||||
你可以通过禁用 `NodeInclusionPolicyInPodTopologySpread`
|
你可以通过禁用 `NodeInclusionPolicyInPodTopologySpread`
|
||||||
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)来禁用此字段。
|
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)来禁用此字段。
|
||||||
{{< /note >}}
|
{{< /note >}}
|
||||||
|
@ -904,8 +904,8 @@ Pod 彼此的调度方式(更密集或更分散)。
|
||||||
|
|
||||||
`podAntiAffinity`
|
`podAntiAffinity`
|
||||||
: 驱逐 Pod。如果将此设为 `requiredDuringSchedulingIgnoredDuringExecution` 模式,
|
: 驱逐 Pod。如果将此设为 `requiredDuringSchedulingIgnoredDuringExecution` 模式,
|
||||||
则只有单个 Pod 可以调度到单个拓扑域;如果你选择 `preferredDuringSchedulingIgnoredDuringExecution`,
|
则只有单个 Pod 可以调度到单个拓扑域;如果你选择 `preferredDuringSchedulingIgnoredDuringExecution`,
|
||||||
则你将丢失强制执行此约束的能力。
|
则你将丢失强制执行此约束的能力。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
For finer control, you can specify topology spread constraints to distribute
|
For finer control, you can specify topology spread constraints to distribute
|
||||||
|
|
Loading…
Reference in New Issue