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
@@ -101,7 +102,7 @@ you can specify a time zone for a CronJob (if you don't enable that feature gate
101
102
Kubernetes that does not have experimental time zone support, all CronJobs in your cluster have an unspecified
102
103
timezone).
103
104
104
-
When you have the feature enabled, you can set `spec.timeZone` to the name of a valid [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) name. For example, setting
105
+
When you have the feature enabled, you can set `spec.timeZone` to the name of a valid [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, setting
105
106
`spec.timeZone: "Etc/UTC"` instructs Kubernetes to interpret the schedule relative to Coordinated Universal Time.
106
107
107
108
A time zone database from the Go standard library is included in the binaries and used as a fallback in case an external database is not available on the system.
@@ -121,23 +122,23 @@ If `startingDeadlineSeconds` is set to a value less than 10 seconds, the CronJob
121
122
{{< /caution >}}
122
123
123
124
124
-
For every CronJob, the CronJob {{< glossary_tooltip term_id="controller" >}} checks how many schedules it missed in the duration from its last scheduled time until now. If there are more than 100 missed schedules, then it does not start the job and logs the error
125
+
For every CronJob, the CronJob {{< glossary_tooltip term_id="controller" >}} checks how many schedules it missed in the duration from its last scheduled time until now. If there are more than 100 missed schedules, then it does not start the job and logs the error.
125
126
126
-
````
127
+
```
127
128
Cannot determine if job needs to be started. Too many missed start time (> 100). Set or decrease .spec.startingDeadlineSeconds or check clock skew.
128
-
````
129
+
```
129
130
130
131
It is important to note that if the `startingDeadlineSeconds` field is set (not `nil`), the controller counts how many missed jobs occurred from the value of `startingDeadlineSeconds` until now rather than from the last scheduled time until now. For example, if `startingDeadlineSeconds` is `200`, the controller counts how many missed jobs occurred in the last 200 seconds.
131
132
132
-
A CronJob is counted as missed if it has failed to be created at its scheduled time. For example, If`concurrencyPolicy` is set to `Forbid` and a CronJob was attempted to be scheduled when there was a previous schedule still running, then it would count as missed.
133
+
A CronJob is counted as missed if it has failed to be created at its scheduled time. For example, if`concurrencyPolicy` is set to `Forbid` and a CronJob was attempted to be scheduled when there was a previous schedule still running, then it would count as missed.
133
134
134
135
For example, suppose a CronJob is set to schedule a new Job every one minute beginning at `08:30:00`, and its
135
136
`startingDeadlineSeconds` field is not set. If the CronJob controller happens to
136
137
be down from `08:29:00` to `10:21:00`, the job will not start as the number of missed jobs which missed their schedule is greater than 100.
137
138
138
139
To illustrate this concept further, suppose a CronJob is set to schedule a new Job every one minute beginning at `08:30:00`, and its
139
140
`startingDeadlineSeconds` is set to 200 seconds. If the CronJob controller happens to
140
-
be down for the same period as the previous example (`08:29:00` to `10:21:00`,) the Job will still start at 10:22:00. This happens as the controller now checks how many missed schedules happened in the last 200 seconds (ie, 3 missed schedules), rather than from the last scheduled time until now.
141
+
be down for the same period as the previous example (`08:29:00` to `10:21:00`,) the Job will still start at 10:22:00. This happens as the controller now checks how many missed schedules happened in the last 200 seconds (i.e., 3 missed schedules), rather than from the last scheduled time until now.
141
142
142
143
The CronJob is only responsible for creating Jobs that match its schedule, and
143
144
the Job in turn is responsible for the management of the Pods it represents.
@@ -146,7 +147,7 @@ the Job in turn is responsible for the management of the Pods it represents.
146
147
147
148
Starting with Kubernetes v1.21 the second version of the CronJob controller
148
149
is the default implementation. To disable the default CronJob controller
149
-
and use the original CronJob controller instead, one pass the `CronJobControllerV2`
150
+
and use the original CronJob controller instead, pass the `CronJobControllerV2`
0 commit comments