Merge pull request #36229 from jzhupup/cronjob_jzh

[zh-cn] sync1.25 cron-job.md
This commit is contained in:
Kubernetes Prow Robot 2022-08-24 07:12:04 -07:00 committed by GitHub
commit 6ac4428c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ To generate CronJob schedule expressions, you can also use web tools like [cront
## Time zones
For CronJobs with no time zone specified, the kube-controller-manager interprets schedules relative to its local time zone.
{{< feature-state for_k8s_version="v1.24" state="alpha" >}}
{{< feature-state for_k8s_version="v1.25" state="beta" >}}
If you enable the `CronJobTimeZone` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/),
you can specify a time zone for a CronJob (if you don't enable that feature gate, or if you are using a version of
@ -170,7 +170,7 @@ A time zone database from the Go standard library is included in the binaries an
## 时区 {#time-zones}
对于没有指定时区的 CronJobkube-controller-manager 基于本地时区解释排期表Schedule
{{< feature-state for_k8s_version="v1.24" state="alpha" >}}
{{< feature-state for_k8s_version="v1.25" state="beta" >}}
如果启用了 `CronJobTimeZone` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
你可以为 CronJob 指定一个时区(如果你没有启用该特性门控,或者你使用的是不支持试验性时区功能的