Skip to content

Commit 243c7af

Browse files
authored
Merge pull request #39459 from windsonsea/assnode
[zh] sync /scheduling-eviction/assign-pod-node.md
2 parents 08dbd2d + 0aa084f commit 243c7af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,18 @@ Some of the limitations of using `nodeName` to select nodes are:
815815
而其失败原因中会给出是否因为内存或 CPU 不足而造成无法运行。
816816
- 在云环境中的节点名称并不总是可预测的,也不总是稳定的。
817817

818+
{{< note >}}
819+
<!--
820+
`nodeName` is intended for use by custom schedulers or advanced use cases where
821+
you need to bypass any configured schedulers. Bypassing the schedulers might lead to
822+
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.
823+
-->
824+
`nodeName` 旨在供自定义调度程序或需要绕过任何已配置调度程序的高级场景使用。
825+
如果已分配的 Node 负载过重,绕过调度程序可能会导致 Pod 失败。
826+
你可以使用[节点亲和性](#node-affinity)或 [`nodeselector` 字段](#nodeselector)将
827+
Pod 分配给特定 Node,而无需绕过调度程序。
828+
{{</ note >}}
829+
818830
<!--
819831
Here is an example of a Pod spec using the `nodeName` field:
820832
-->

0 commit comments

Comments
 (0)