Merge pull request #48169 from RifeWang/sync-zh-docs/concepts/scheduling-eviction/topology-spread-constraints

[zh-cn] sync docs/concepts/scheduling-eviction/topology-spread-constr…
pull/48172/head
Kubernetes Prow Robot 2024-10-03 05:34:26 +01:00 committed by GitHub
commit 3ad5591585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -745,8 +745,8 @@ There are some implicit conventions worth noting here:
- Only the Pods holding the same namespace as the incoming Pod can be matching candidates.
- The scheduler bypasses any nodes that don't have any `topologySpreadConstraints[*].topologyKey`
present. This implies that:
- The scheduler only considers nodes that have all `topologySpreadConstraints[*].topologyKey` present at the same time.
Nodes missing any of these `topologyKeys` are bypassed. This implies that:
1. any Pods located on those bypassed nodes do not impact `maxSkew` calculation - in the
above [example](#example-conflicting-topologyspreadconstraints), suppose the node `node1`
@ -763,7 +763,7 @@ There are some implicit conventions worth noting here:
- 只有与新来的 Pod 具有相同命名空间的 Pod 才能作为匹配候选者。
- 调度器会忽略没有任何 `topologySpreadConstraints[*].topologyKey` 的节点。这意味着:
- 调度器只考虑同时拥有所有 `topologySpreadConstraints[*].topologyKey` 的节点。缺少任何一个 `topologyKey` 的节点将被跳过。这意味着:
1. 位于这些节点上的 Pod 不影响 `maxSkew` 计算,在上面的[例子](#example-conflicting-topologyspreadconstraints)中,
假设节点 `node1` 没有标签 "zone",则 2 个 Pod 将被忽略,因此新来的