Skip to content

Commit 540d43d

Browse files
committed
zh-trans: update CronJob
1 parent b45c003 commit 540d43d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/zh/docs/concepts/workloads/controllers/cron-jobs.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,25 @@ the Job in turn is responsible for the management of the Pods it represents.
157157
-->
158158
CronJob 仅负责创建与其调度时间相匹配的 Job,而 Job 又负责管理其代表的 Pod。
159159

160+
<!--
161+
## New controller
162+
163+
There's an alternative implementation of the CronJob controller, available as an alpha feature since Kubernetes 1.20. To select version 2 of the CronJob controller, pass the following [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) flag to the {{< glossary_tooltip term_id="kube-controller-manager" text="kube-controller-manager" >}}.
164+
165+
```
166+
--feature-gates="CronJobControllerV2=true"
167+
```
168+
-->
169+
## 新控制器
170+
171+
CronJob 控制器有一个替代的实现,自 Kubernetes 1.20 开始以 alpha 特性引入。
172+
如果选择 CronJob 控制器的 v2 版本,请在 {{< glossary_tooltip term_id="kube-controller-manager" text="kube-controller-manager" >}}
173+
中设置以下[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/) 标志。
174+
175+
```
176+
--feature-gates="CronJobControllerV2=true"
177+
```
178+
160179
## {{% heading "whatsnext" %}}
161180
<!--
162181
[Cron expression format](https://en.wikipedia.org/wiki/Cron)

0 commit comments

Comments
 (0)