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/scheduling-eviction/assign-pod-node.md
+42-29Lines changed: 42 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,8 +59,10 @@ specific Pods:
59
59
## Node labels {#built-in-node-labels}
60
60
61
61
Like many other Kubernetes objects, nodes have
62
-
[labels](/docs/concepts/overview/working-with-objects/labels/). You can [attach labels manually](/docs/tasks/configure-pod-container/assign-pods-nodes/#add-a-label-to-a-node).
63
-
Kubernetes also populates a [standard set of labels](/docs/reference/node/node-labels/) on all nodes in a cluster.
62
+
[labels](/docs/concepts/overview/working-with-objects/labels/). You can
标签的节点组成,只要 Zone R 内已经至少有一个 Pod 打了 `security=S2` 标签,
602
+
调度器应避免将 Pod 分配给 Zone R 内的任何节点。相反,如果 Zone R 中没有带有 `security=S2` 标签的 Pod,
603
+
则反亲和性规则不会影响将 Pod 调度到 Zone R。
591
604
592
605
<!--
593
606
To get yourself more familiar with the examples of Pod affinity and anti-affinity,
@@ -847,10 +860,10 @@ Some of the limitations of using `nodeName` to select nodes are:
847
860
you need to bypass any configured schedulers. Bypassing the schedulers might lead to
848
861
failed Pods if the assigned Nodes get oversubscribed. You can use [node affinity](#node-affinity) or a the [`nodeselector` field](#nodeselector) to assign a Pod to a specific Node without bypassing the schedulers.
0 commit comments