Skip to content

Commit f34e176

Browse files
committed
update the description of timezone
1 parent b359650 commit f34e176

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

content/en/docs/concepts/workloads/controllers/cron-jobs.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,7 @@ Other than the standard syntax, some macros like `@monthly` can also be used:
9797
| @hourly | Run once an hour at the beginning of the hour | 0 * * * * |
9898

9999
{{< caution >}}
100-
All **CronJob** `schedule:` times are based on the timezone of the
101-
{{< glossary_tooltip term_id="kube-controller-manager" text="kube-controller-manager" >}}.
102-
103-
If your control plane runs the kube-controller-manager in Pods or bare
104-
containers, the timezone set for the kube-controller-manager container determines the timezone
105-
that the CronJob controller uses.
106-
{{< /caution >}}
107-
108-
{{< caution >}}
109-
The [v1 CronJob API](/docs/reference/kubernetes-api/workload-resources/cron-job-v1/)
110-
does not officially support setting timezone as explained above.
111-
112-
Setting variables such as `CRON_TZ` or `TZ` is not officially supported by the Kubernetes project.
113-
`CRON_TZ` or `TZ` is an implementation detail of the internal library being used
114-
for parsing and calculating the next Job creation time. Any usage of it is not
115-
recommended in a production cluster.
100+
Historically you may find the `.spec.schedule` field can be set with a timezone like `CRON_TZ=UTC * * * * *`. This way is not recommended any more and you should consider use the `.spec.timeZone` field as described below.
116101
{{< /caution >}}
117102

118103
To generate CronJob schedule expressions, you can also use web tools like [crontab.guru](https://crontab.guru/).

0 commit comments

Comments
 (0)