Skip to content

Commit cfe2758

Browse files
authored
Merge pull request #39362 from Zhuzhenghao/daemonset
[zh] Resync daemonset.md
2 parents 4da73fb + f8662db commit cfe2758

File tree

1 file changed

+15
-10
lines changed
  • content/zh-cn/docs/concepts/workloads/controllers

1 file changed

+15
-10
lines changed

content/zh-cn/docs/concepts/workloads/controllers/daemonset.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
---
22
title: DaemonSet
33
content_type: concept
4-
weight: 50
4+
weight: 40
55
---
66

77
<!--
8+
reviewers:
9+
- enisoc
10+
- erictune
11+
- foxish
12+
- janetkuo
13+
- kow3ns
814
title: DaemonSet
915
content_type: concept
10-
weight: 50
16+
weight: 40
1117
--->
1218

1319
<!-- overview -->
@@ -131,7 +137,7 @@ A Pod Template in a DaemonSet must have a [`RestartPolicy`](/docs/concepts/workl
131137
### Pod Selector
132138
133139
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/).
135141
136142
You must specify a pod selector that matches the labels of the
137143
`.spec.template`.
@@ -177,7 +183,7 @@ Config with these two not matching will be rejected by the API.
177183
如果配置中这两个字段不匹配,则会被 API 拒绝。
178184

179185
<!--
180-
### Running Pods on Only Some Nodes
186+
### Running Pods on select Nodes
181187
182188
If you specify a `.spec.template.spec.nodeSelector`, then the DaemonSet controller will
183189
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
186192
[node affinity](/docs/concepts/scheduling-eviction/assign-pod-node/).
187193
If you do not specify either, then the DaemonSet controller will create Pods on all nodes.
188194
-->
189-
### 仅在某些节点上运行 Pod {#running-pods-on-only-some-nodes}
195+
### 在选定的节点上运行 Pod {#running-pods-on-select-nodes}
190196

191197
如果指定了 `.spec.template.spec.nodeSelector`,DaemonSet 控制器将在能够与
192198
[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
195201
如果根本就没有指定,则 DaemonSet Controller 将在所有节点上创建 Pod。
196202

197203
<!--
198-
## How Daemon Pods are Scheduled
204+
## How Daemon Pods are scheduled
199205
200206
### Scheduled by default scheduler
201207
-->
@@ -268,13 +274,13 @@ DaemonSet Pod。在调度 DaemonSet Pod 时,默认调度器会忽略 `unschedu
268274
### Taints and Tolerations
269275

270276
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/),
272278
the following tolerations are added to DaemonSet Pods automatically according to
273279
the related features.
274280
-->
275281
### 污点和容忍度 {#taint-and-toleration}
276282

277-
尽管 Daemon Pod 遵循[污点和容忍度](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration)规则,
283+
尽管 Daemon Pod 遵循[污点和容忍度](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/)规则,
278284
根据相关特性,控制器会自动将以下容忍度添加到 DaemonSet Pod:
279285

280286
| 容忍度键名 | 效果 | 版本 | 描述 |
@@ -354,7 +360,7 @@ You can [perform a rolling update](/docs/tasks/manage-daemon/update-daemon-set/)
354360
<!--
355361
## Alternatives to DaemonSet
356362

357-
### Init Scripts
363+
### Init scripts
358364
-->
359365
## DaemonSet 的替代方案 {#alternatives-to-daemon-set}
360366

@@ -465,4 +471,3 @@ DaemonSet 与 [Deployment](/zh-cn/docs/concepts/workloads/controllers/deployment
465471
[扩展(Addons)](/zh-cn/docs/concepts/cluster-administration/addons/),它们常以 DaemonSet 运行。
466472
* `DaemonSet` 是 Kubernetes REST API 中的顶级资源。阅读 {{< api-reference page="workload-resources/daemon-set-v1" >}}
467473
对象定义理解关于该资源的 API。
468-

0 commit comments

Comments
 (0)