1
1
---
2
2
title : DaemonSet
3
3
content_type : concept
4
- weight : 50
4
+ weight : 40
5
5
---
6
6
7
7
<!--
8
+ reviewers:
9
+ - enisoc
10
+ - erictune
11
+ - foxish
12
+ - janetkuo
13
+ - kow3ns
8
14
title: DaemonSet
9
15
content_type: concept
10
- weight: 50
16
+ weight: 40
11
17
--->
12
18
13
19
<!-- overview -->
@@ -131,7 +137,7 @@ A Pod Template in a DaemonSet must have a [`RestartPolicy`](/docs/concepts/workl
131
137
### Pod Selector
132
138
133
139
The `.spec.selector` field is a pod selector. It works the same as the `.spec.selector` of
134
- a [Job](/docs/concepts/jobs/run-to-completion-finite- workloads/).
140
+ a [Job](/docs/concepts/workloads/controllers/job /).
135
141
136
142
You must specify a pod selector that matches the labels of the
137
143
`.spec.template`.
@@ -177,7 +183,7 @@ Config with these two not matching will be rejected by the API.
177
183
如果配置中这两个字段不匹配,则会被 API 拒绝。
178
184
179
185
<!--
180
- ### Running Pods on Only Some Nodes
186
+ ### Running Pods on select Nodes
181
187
182
188
If you specify a `.spec.template.spec.nodeSelector`, then the DaemonSet controller will
183
189
create Pods on nodes which match that [node selector](/docs/concepts/scheduling-eviction/assign-pod-node/).
@@ -186,7 +192,7 @@ then DaemonSet controller will create Pods on nodes which match that
186
192
[node affinity](/docs/concepts/scheduling-eviction/assign-pod-node/).
187
193
If you do not specify either, then the DaemonSet controller will create Pods on all nodes.
188
194
-->
189
- ### 仅在某些节点上运行 Pod {#running-pods-on-only-some -nodes}
195
+ ### 在选定的节点上运行 Pod {#running-pods-on-select -nodes}
190
196
191
197
如果指定了 ` .spec.template.spec.nodeSelector ` ,DaemonSet 控制器将在能够与
192
198
[ Node 选择算符] ( /zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/ ) 匹配的节点上创建 Pod。
@@ -195,7 +201,7 @@ If you do not specify either, then the DaemonSet controller will create Pods on
195
201
如果根本就没有指定,则 DaemonSet Controller 将在所有节点上创建 Pod。
196
202
197
203
<!--
198
- ## How Daemon Pods are Scheduled
204
+ ## How Daemon Pods are scheduled
199
205
200
206
### Scheduled by default scheduler
201
207
-->
@@ -268,13 +274,13 @@ DaemonSet Pod。在调度 DaemonSet Pod 时,默认调度器会忽略 `unschedu
268
274
# ## Taints and Tolerations
269
275
270
276
Although Daemon Pods respect
271
- [taints and tolerations](/docs/concepts/configuration /taint-and-toleration),
277
+ [taints and tolerations](/docs/concepts/scheduling-eviction /taint-and-toleration/ ),
272
278
the following tolerations are added to DaemonSet Pods automatically according to
273
279
the related features.
274
280
-->
275
281
# ## 污点和容忍度 {#taint-and-toleration}
276
282
277
- 尽管 Daemon Pod 遵循[污点和容忍度](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration)规则,
283
+ 尽管 Daemon Pod 遵循[污点和容忍度](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/ )规则,
278
284
根据相关特性,控制器会自动将以下容忍度添加到 DaemonSet Pod:
279
285
280
286
| 容忍度键名 | 效果 | 版本 | 描述 |
@@ -354,7 +360,7 @@ You can [perform a rolling update](/docs/tasks/manage-daemon/update-daemon-set/)
354
360
<!--
355
361
# # Alternatives to DaemonSet
356
362
357
- # ## Init Scripts
363
+ # ## Init scripts
358
364
-->
359
365
# # DaemonSet 的替代方案 {#alternatives-to-daemon-set}
360
366
@@ -465,4 +471,3 @@ DaemonSet 与 [Deployment](/zh-cn/docs/concepts/workloads/controllers/deployment
465
471
[扩展(Addons)](/zh-cn/docs/concepts/cluster-administration/addons/),它们常以 DaemonSet 运行。
466
472
* `DaemonSet` 是 Kubernetes REST API 中的顶级资源。阅读 {{< api-reference page="workload-resources/daemon-set-v1" >}}
467
473
对象定义理解关于该资源的 API。
468
-
0 commit comments