Skip to content

Commit 96a770c

Browse files
authored
Merge pull request #25810 from mysunshine92/update-CronJob
zh-trans: update CronJob
2 parents 5aeee62 + 540d43d commit 96a770c

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
@@ -205,6 +205,25 @@ the Job in turn is responsible for the management of the Pods it represents.
205205
-->
206206
CronJob 仅负责创建与其调度时间相匹配的 Job,而 Job 又负责管理其代表的 Pod。
207207

208+
<!--
209+
## New controller
210+
211+
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" >}}.
212+
213+
```
214+
--feature-gates="CronJobControllerV2=true"
215+
```
216+
-->
217+
## 新控制器
218+
219+
CronJob 控制器有一个替代的实现,自 Kubernetes 1.20 开始以 alpha 特性引入。
220+
如果选择 CronJob 控制器的 v2 版本,请在 {{< glossary_tooltip term_id="kube-controller-manager" text="kube-controller-manager" >}}
221+
中设置以下[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/) 标志。
222+
223+
```
224+
--feature-gates="CronJobControllerV2=true"
225+
```
226+
208227
## {{% heading "whatsnext" %}}
209228
<!--
210229
[Cron expression format](https://en.wikipedia.org/wiki/Cron)

0 commit comments

Comments
 (0)