Skip to content

Commit 8eaf25b

Browse files
committed
[zh-cn] sync garbage-collection statefulset ttlafterfinished
Signed-off-by: xin.li <[email protected]>
1 parent 865eb41 commit 8eaf25b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

content/zh-cn/docs/concepts/architecture/garbage-collection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ kubelet 会基于如下变量对所有未使用的容器执行垃圾收集操作
286286
<!--
287287
* `MinAge`: the minimum age at which the kubelet can garbage collect a
288288
container. Disable by setting to `0`.
289-
* `MaxPerPodContainer`: the maximum number of dead containers each Pod pair
289+
* `MaxPerPodContainer`: the maximum number of dead containers each Pod
290290
can have. Disable by setting to less than `0`.
291291
* `MaxContainers`: the maximum number of dead containers the cluster can have.
292292
Disable by setting to less than `0`.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ In the above example:
169169
PersistentVolume Provisioner.
170170

171171
The name of a StatefulSet object must be a valid
172-
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
172+
[DNS label](/docs/concepts/overview/working-with-objects/names#dns-label-names).
173173
-->
174174
上述例子中:
175175

@@ -179,7 +179,7 @@ The name of a StatefulSet object must be a valid
179179
[PersistentVolumes](/zh-cn/docs/concepts/storage/persistent-volumes/) 来提供稳定的存储。
180180

181181
StatefulSet 的命名需要遵循
182-
[DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)规范。
182+
[DNS 标签](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-label-names)规范。
183183

184184
<!--
185185
### Pod Selector

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,25 @@ Kubernetes 尊重 Job 对象的生命周期保证,例如等待
8181
* Manually set this field of existing, already finished Jobs, so that they become eligible
8282
for cleanup.
8383
* Use a
84-
[mutating admission webhook](/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks)
84+
[mutating admission webhook](/docs/reference/access-authn-authz/admission-controllers/#mutatingadmissionwebhook)
8585
to set this field dynamically at Job creation time. Cluster administrators can
8686
use this to enforce a TTL policy for finished jobs.
8787
-->
8888
* 在 Job 清单(manifest)中指定此字段,以便 Job 在完成后的某个时间被自动清理。
8989
* 手动设置现有的、已完成的 Job 的此字段,以便这些 Job 可被清理。
90-
* 在创建 Job 时使用[修改性质的准入 Webhook](/zh-cn/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks)
90+
* 在创建 Job 时使用[修改性质的准入 Webhook](/zh-cn/docs/reference/access-authn-authz/admission-controllers/#mutatingadmissionwebhook)
9191
动态设置该字段。集群管理员可以使用它对已完成的作业强制执行 TTL 策略。
9292
<!--
9393
* Use a
94-
[mutating admission webhook](/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks)
94+
[mutating admission webhook](/docs/reference/access-authn-authz/admission-controllers/#mutatingadmissionwebhook)
9595
to set this field dynamically after the Job has finished, and choose
9696
different TTL values based on job status, labels. For this case, the webhook needs
9797
to detect changes to the `.status` of the Job and only set a TTL when the Job
9898
is being marked as completed.
9999
* Write your own controller to manage the cleanup TTL for Jobs that match a particular
100100
{{< glossary_tooltip term_id="selector" text="selector-selector" >}}.
101101
-->
102-
* 使用[修改性质的准入 Webhook](/zh-cn/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks)
102+
* 使用[修改性质的准入 Webhook](/zh-cn/docs/reference/access-authn-authz/admission-controllers/#mutatingadmissionwebhook)
103103
在 Job 完成后动态设置该字段,并根据 Job 状态、标签等选择不同的 TTL 值。
104104
对于这种情况,Webhook 需要检测 Job 的 `.status` 变化,并且仅在 Job 被标记为已完成时设置 TTL。
105105
* 编写你自己的控制器来管理与特定{{< glossary_tooltip term_id="selector" text="选择算符" >}}匹配的

0 commit comments

Comments
 (0)