@@ -261,21 +261,35 @@ problems, the kubelet resets the restart backoff timer for that container.
261
261
[ Sidecar containers and Pod lifecycle] ( /docs/concepts/workloads/pods/sidecar-containers/#sidecar-containers-and-pod-lifecycle )
262
262
explains the behaviour of ` init containers ` when specify ` restartpolicy ` field on it.
263
263
264
+ ### Reduced container restart delay
265
+
266
+ {{< feature-state
267
+ feature_gate_name="ReduceDefaultCrashLoopBackOffDecay" >}}
268
+
269
+ With the alpha feature gate ` ReduceDefaultCrashLoopBackOffDecay ` enabled,
270
+ container start retries across your cluster will be reduced to begin at 1s
271
+ (instead of 10s) and increase exponentially by 2x each restart until a maximum
272
+ delay of 60s (instead of 300s which is 5 minutes).
273
+
274
+ If you use this feature along with the alpha feature
275
+ ` KubeletCrashLoopBackOffMax ` (described below), individual nodes may have
276
+ different maximum delays.
277
+
264
278
### Configurable container restart delay
265
279
266
280
{{< feature-state feature_gate_name="KubeletCrashLoopBackOffMax" >}}
267
281
268
282
With the alpha feature gate ` KubeletCrashLoopBackOffMax ` enabled, you can
269
283
reconfigure the maximum delay between container start retries from the default
270
284
of 300s (5 minutes). This configuration is set per node using kubelet
271
- configuration. In your [ kubelet configuration ] ( /docs/tasks/administer-cluster/kubelet-config-file/ ) ,
272
- under ` crashLoopBackOff ` set the ` maxContainerRestartPeriod ` field between
273
- ` "1s" ` and ` "300s" ` . As described above in [ Container restart
274
- policy] ( #restart-policy ) , delays on that node will still start at 10s and
275
- increase exponentially by 2x each restart, but will now be capped at your
276
- configured maximum. If the ` maxContainerRestartPeriod ` you configure is less
277
- than the default initial value of 10s, the initial delay will instead be set to
278
- the configured maximum.
285
+ configuration. In your [ kubelet
286
+ configuration ] ( /docs/tasks/administer-cluster/kubelet-config-file/ ) , under
287
+ ` crashLoopBackOff ` set the ` maxContainerRestartPeriod ` field between ` "1s" ` and
288
+ ` "300s" ` . As described above in [ Container restart policy] ( #restart-policy ) ,
289
+ delays on that node will still start at 10s and increase exponentially by 2x
290
+ each restart, but will now be capped at your configured maximum. If the
291
+ ` maxContainerRestartPeriod ` you configure is less than the default initial value
292
+ of 10s, the initial delay will instead be set to the configured maximum.
279
293
280
294
See the following kubelet configuration examples:
281
295
@@ -294,6 +308,13 @@ crashLoopBackOff:
294
308
maxContainerRestartPeriod : " 2s"
295
309
` ` `
296
310
311
+ If you use this feature along with the alpha feature
312
+ ` ReduceDefaultCrashLoopBackOffDecay` (described above), your cluster defaults
313
+ for initial backoff and maximum backoff will no longer be 10s and 300s, but 1s
314
+ and 60s. Per node configuration takes precedence over the defaults set by
315
+ ` ReduceDefaultCrashLoopBackOffDecay` , even if this would result in a node having
316
+ a longer maximum backoff than other nodes in the cluster.
317
+
297
318
# # Pod conditions
298
319
299
320
A Pod has a PodStatus, which has an array of
0 commit comments