From 2403bccc95da3da544353d3da34f81c8615cee7c Mon Sep 17 00:00:00 2001 From: tico88612 <17496418+tico88612@users.noreply.github.com> Date: Sat, 27 Apr 2024 17:54:34 +0800 Subject: [PATCH] [zh-cn] sync `Pod Topology Spread Constraints` Signed-off-by: tico88612 <17496418+tico88612@users.noreply.github.com> --- .../topology-spread-constraints.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/content/zh-cn/docs/concepts/scheduling-eviction/topology-spread-constraints.md b/content/zh-cn/docs/concepts/scheduling-eviction/topology-spread-constraints.md index 3a3db98d464a5..f72f8b9db697d 100644 --- a/content/zh-cn/docs/concepts/scheduling-eviction/topology-spread-constraints.md +++ b/content/zh-cn/docs/concepts/scheduling-eviction/topology-spread-constraints.md @@ -101,7 +101,7 @@ spec: # Configure a topology spread constraint topologySpreadConstraints: - maxSkew: - minDomains: # optional; beta since v1.25 + minDomains: # optional topologyKey: whenUnsatisfiable: labelSelector: @@ -121,7 +121,7 @@ spec: # 配置一个拓扑分布约束 topologySpreadConstraints: - maxSkew: - minDomains: # 可选;自从 v1.25 开始成为 Beta + minDomains: # 可选 topologyKey: whenUnsatisfiable: labelSelector: @@ -184,15 +184,13 @@ your cluster. Those fields are: {{< note >}} - `MinDomainsInPodTopologySpread` - [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)为 - Pod 拓扑分布启用 `minDomains`。自 v1.28 起,`MinDomainsInPodTopologySpread` 特性门控默认被启用。 + 在 Kubernetes v1.30 之前,`minDomains` 字段只有在启用 `MinDomainsInPodTopologySpread` + [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)时才可用(自 v1.28 起默认启用) 在早期的 Kubernetes 集群中,此特性门控可能被显式禁用或此字段可能不可用。 {{< /note >}}