You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh-cn/docs/concepts/workloads/controllers/cron-jobs.md
+25-9Lines changed: 25 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
---
2
2
title: CronJob
3
+
api_metadata:
4
+
- apiVersion: "batch/v1"
5
+
kind: "CronJob"
3
6
content_type: concept
4
7
description: >-
5
8
CronJob 通过重复调度启动一次性的 Job。
@@ -12,6 +15,9 @@ reviewers:
12
15
- soltysh
13
16
- janetkuo
14
17
title: CronJob
18
+
api_metadata:
19
+
- apiVersion: "batch/v1"
20
+
kind: "CronJob"
15
21
content_type: concept
16
22
description: >-
17
23
A CronJob starts one-time Jobs on a repeating schedule.
@@ -310,18 +316,28 @@ When `.spec.suspend` changes from `true` to `false` on an existing CronJob witho
310
316
<!--
311
317
### Jobs history limits
312
318
313
-
The `.spec.successfulJobsHistoryLimit` and `.spec.failedJobsHistoryLimit` fields are optional.
314
-
These fields specify how many completed and failed Jobs should be kept.
315
-
By default, they are set to 3 and 1 respectively. Setting a limit to `0` corresponds to keeping
316
-
none of the corresponding kind of Jobs after they finish.
319
+
The `.spec.successfulJobsHistoryLimit` and `.spec.failedJobsHistoryLimit` fields specify
320
+
how many completed and failed Jobs should be kept. Both fields are optional.
317
321
318
-
For another way to clean up Jobs automatically, see [Clean up finished Jobs automatically](/docs/concepts/workloads/controllers/job/#clean-up-finished-jobs-automatically).
322
+
* `.spec.successfulJobsHistoryLimit`: This field specifies the number of successful finished
323
+
jobs to keep. The default value is `3`. Setting this field to `0` will not keep any successful jobs.
324
+
325
+
* `.spec.failedJobsHistoryLimit`: This field specifies the number of failed finished jobs to keep.
326
+
The default value is `1`. Setting this field to `0` will not keep any failed jobs.
327
+
328
+
For another way to clean up Jobs automatically, see
329
+
[Clean up finished Jobs automatically](/docs/concepts/workloads/controllers/job/#clean-up-finished-jobs-automatically).
0 commit comments