Apply suggestions from code review

Co-authored-by: Qiming Teng <tengqm@outlook.com>
This commit is contained in:
Mayo/IO
2021-10-11 22:52:49 +08:00
committed by GitHub
parent 5cce85b5dc
commit a630d578a4
2 changed files with 7 additions and 5 deletions
@@ -467,12 +467,13 @@ DaemonSet 与 [Deployments](/zh/docs/concepts/workloads/controllers/deployment/)
object definition to understand the API for daemon sets.
-->
* 了解 [Pods](/zh/docs/concepts/workloads/pods)。
* 了解[静态 Pod](#static-pods),这对运行 Kubernetes {{< glossary_tooltip text="control plane" term_id="control-plane" >}}组件有帮助。
* 了解[静态 Pod](#static-pods),这对运行 Kubernetes {{< glossary_tooltip text="控制面" term_id="control-plane" >}}组件有帮助。
* 了解如何使用 DaemonSet
* [对 DaemonSet 执行滚动更新](/zh/docs/tasks/manage-daemon/update-daemon-set/)
* [对 DaemonSet 执行回滚](/zh/docs/tasks/manage-daemon/rollback-daemon-set/)(例如:新的版本没有达到你的预期)
* 理解[Kubernetes 如何将 Pod 分配给节点](/zh/docs/concepts/scheduling-eviction/assign-pod-node/)。
* 了解[设备插件](/zh/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/)和[扩展(Addons](/zh/docs/concepts/cluster-administration/addons/),它们常以 DaemonSet 运行。
* 了解[设备插件](/zh/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/)和
[扩展(Addons](/zh/docs/concepts/cluster-administration/addons/),它们常以 DaemonSet 运行。
* `DaemonSet` 是 Kubernetes REST API 中的顶级资源。阅读 {{< api-reference page="workload-resources/daemon-set-v1" >}}
对象定义理解关于该资源的 API。
@@ -356,7 +356,8 @@ Jobs with _fixed completion count_ - that is, jobs that have non null
该索引可以通过三种方式获取:
- Pod 注解 `batch.kubernetes.io/job-completion-index`
- 作为 Pod 主机名的一部分,遵循模式 `$(job-name)-$(index)`
当你同时使用带索引的 JobIndexed Job)与 {{< glossary_tooltip term_id="Service" >}}Job 中的 Pods 可以通过 DNS 使用确切的主机名互相寻址。
当你同时使用带索引的 JobIndexed Job)与 {{< glossary_tooltip term_id="Service" >}}
Job 中的 Pods 可以通过 DNS 使用确切的主机名互相寻址。
- 对于容器化的任务,在环境变量 `JOB_COMPLETION_INDEX` 中。
当每个索引都对应一个完成完成的 Pod 时,Job 被认为是已完成的。
@@ -988,10 +989,10 @@ see is that the control plane tracking of Job completion is more accurate.
{{< feature-state for_k8s_version="v1.22" state="alpha" >}}
{{< note >}}
要使用该行为,你必须为 [API 服务器](//zh/docs/reference/command-line-tools-reference/kube-apiserver/)
要使用该行为,你必须为 [API 服务器](/zh/docs/reference/command-line-tools-reference/kube-apiserver/)
和[控制器管理器](/zh/docs/reference/command-line-tools-reference/kube-controller-manager/)
启用 `JobTrackingWithFinalizers`
[特性门控](/docs/reference/command-line-tools-reference/feature-gates/)。
[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)。
默认是禁用的。
启用后,控制面基于下述行为追踪新的 Job。现有 Job 不受影响。