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
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.
116
101
{{< /caution >}}
117
102
118
103
To generate CronJob schedule expressions, you can also use web tools like [crontab.guru](https://crontab.guru/).
0 commit comments