@@ -212,8 +212,8 @@ If you do not specify either, then the DaemonSet controller will create Pods on
212
212
## Daemon Pods 是如何被调度的 {#how-daemon-pods-are-scheduled}
213
213
214
214
<!--
215
- A DaemonSet ensures that all eligible nodes run a copy of a Pod. The DaemonSet
216
- controller creates a Pod for each eligible node and adds the
215
+ A DaemonSet can be used to ensure that all eligible nodes run a copy of a Pod.
216
+ The DaemonSet controller creates a Pod for each eligible node and adds the
217
217
`spec.affinity.nodeAffinity` field of the Pod to match the target host. After
218
218
the Pod is created, the default scheduler typically takes over and then binds
219
219
the Pod to the target host by setting the `.spec.nodeName` field. If the new
@@ -222,13 +222,26 @@ the existing Pods based on the
222
222
[priority](/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority)
223
223
of the new Pod.
224
224
-->
225
- DaemonSet 确保所有符合条件的节点都运行该 Pod 的一个副本。
225
+ DaemonSet 可用于确保所有符合条件的节点都运行该 Pod 的一个副本。
226
226
DaemonSet 控制器为每个符合条件的节点创建一个 Pod,并添加 Pod 的 ` spec.affinity.nodeAffinity `
227
227
字段以匹配目标主机。Pod 被创建之后,默认的调度程序通常通过设置 ` .spec.nodeName ` 字段来接管 Pod 并将
228
228
Pod 绑定到目标主机。如果新的 Pod 无法放在节点上,则默认的调度程序可能会根据新 Pod
229
229
的[ 优先级] ( /zh-cn/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority ) 抢占
230
230
(驱逐)某些现存的 Pod。
231
231
232
+ {{< note >}}
233
+ <!--
234
+ If it's important that the DaemonSet pod run on each node, it's often desirable
235
+ to set the `.spec.template.spec.priorityClassName` of the DaemonSet to a
236
+ [PriorityClass](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass)
237
+ with a higher priority to ensure that this eviction occurs.
238
+ -->
239
+ 当 DaemonSet 中的 Pod 必须运行在每个节点上时,通常需要将 DaemonSet
240
+ 的 ` .spec.template.spec.priorityClassName ` 设置为具有更高优先级的
241
+ [ PriorityClass] ( /zh-cn/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass ) ,
242
+ 以确保可以完成驱逐。
243
+ {{< /note >}}
244
+
232
245
<!--
233
246
The user can specify a different scheduler for the Pods of the DaemonSet, by
234
247
setting the `.spec.template.spec.schedulerName` field of the DaemonSet.
0 commit comments