Merge pull request #49103 from my-git9/pp-25797

[zh-cn]sync cron-jobs.md
pull/49113/head
Kubernetes Prow Robot 2024-12-16 03:26:43 +01:00 committed by GitHub
commit a3e04cc9ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -431,6 +431,14 @@ CronJob 根据其计划编排,在每次该执行任务的时候大约会创建
我们之所以说 "大约",是因为在某些情况下,可能会创建两个 Job或者不会创建任何 Job。
我们试图使这些情况尽量少发生但不能完全杜绝。因此Job 应该是 **幂等的**。
<!--
Starting with Kubernetes v1.32, CronJobs apply an annotation
`batch.kubernetes.io/cronjob-scheduled-timestamp` to their created Jobs. This annotation
indicates the originally scheduled creation time for the Job and is formatted in RFC3339.
-->
从 Kubernetes v1.32 开始CronJob 为其创建的 Job 添加一个注解 `batch.kubernetes.io/cronjob-scheduled-timestamp`
此注解表示 Job 最初计划的创建时间,采用 RFC3339 格式。
<!--
If `startingDeadlineSeconds` is set to a large value or left unset (the default)
and if `concurrencyPolicy` is set to `Allow`, the Jobs will always run