Merge pull request #35058 from yanrongshi/fix-some-overdue-in-automated-tasks-with-cron-jobs

[zh-cn]fix-some-overdue-in-automated-tasks-with-cron-jobs
pull/35215/head
Kubernetes Prow Robot 2022-07-23 03:06:57 -07:00 committed by GitHub
commit da94c95c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -199,10 +199,9 @@ kubectl delete cronjob hello
<!--
Deleting the cron job removes all the jobs and pods it created and stops it from creating additional jobs.
You can read more about removing jobs in [garbage collection](/docs/concepts/workloads/controllers/garbage-collection/).
You can read more about removing jobs in [garbage collection](/docs/concepts/architecture/garbage-collection/).
-->
删除 CronJob 会清除它创建的所有任务和 Pod并阻止它创建额外的任务。你可以查阅
[垃圾收集](/zh-cn/docs/concepts/workloads/controllers/garbage-collection/)。
删除 CronJob 会清除它创建的所有任务和 Pod并阻止它创建额外的任务。你可以查阅[垃圾收集](/zh-cn/docs/concepts/architecture/garbage-collection/)。
<!--
## Writing a Cron Job Spec
@ -265,7 +264,7 @@ The format also includes extended "Vixie cron" step values. As explained in the
A question mark (`?`) in the schedule has the same meaning as an asterisk `*`, that is, it stands for any of available value for a given field.
-->
{{< note >}}
调度中的问号 (`?`) 和星号 `*` 含义相同,表示给定字段的任何可用值。
调度中的问号 (`?`) 和星号 `*` 含义相同,它们用来表示给定字段的任何可用值。
{{< /note >}}
<!--
@ -297,7 +296,8 @@ If this field is not specified, the jobs have no deadline.
### 开始的最后期限 {#starting-deadline}
`.spec.startingDeadlineSeconds` 字段是可选的。
它表示任务如果由于某种原因错过了调度时间开始该任务的截止时间的秒数。过了截止时间CronJob 就不会开始任务。
它表示任务如果由于某种原因错过了调度时间,开始该任务的截止时间的秒数。
过了截止时间CronJob 就不会开始任务。
不满足这种最后期限的任务会被统计为失败任务。如果此字段未设置,那任务就没有最后期限。
<!--
@ -372,4 +372,4 @@ By default, they are set to 3 and 1 respectively. Setting a limit to `0` corres
`.spec.successfulJobsHistoryLimit``.spec.failedJobsHistoryLimit`是可选的。
这两个字段指定应保留多少已完成和失败的任务。
默认设置分别为 3 和 1。设置为 `0` 代表相应类型的任务完成后不会保留。
默认设置分别为 3 和 1。设置为 `0` 代表相应类型的任务完成后不会保留。