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
Copy file name to clipboardExpand all lines: content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -388,9 +388,24 @@ to 1 second. Minimum value is 1.
388
388
* `successThreshold`: Minimum consecutive successes for the probe to be
389
389
considered successful after having failed. Defaults to 1. Must be 1 for liveness
390
390
and startup Probes. Minimum value is 1.
391
-
* `failureThreshold`: When a probe fails, Kubernetes will
392
-
try `failureThreshold` times before giving up. Giving up in case of liveness probe means restarting the container. In case of readiness probe the Pod will be marked Unready.
393
-
Defaults to 3. Minimum value is 1.
391
+
* `failureThreshold`: After a probe fails `failureThreshold` times in a row, Kubernetes
392
+
considers that the overall check has failed: the container is _not_ ready / healthy /
393
+
live.
394
+
For the case of a startup or liveness probe, if at least `failureThreshold` probes have
395
+
failed, Kubernetes treats the container as unhealthy and triggers a restart for that
396
+
specific container. The kubelet takes the setting of `terminationGracePeriodSeconds`
397
+
for that container into account.
398
+
For a failed readiness probe, the kubelet continues running the container that failed
399
+
checks, and also continues to run more probes; because the check failed, the kubelet
400
+
sets the `Ready` [condition](/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions)
401
+
on the Pod to `false`.
402
+
* `terminationGracePeriodSeconds`: configure a grace period for the kubelet to wait
403
+
between triggering a shut down of the failed container, and then forcing the
404
+
container runtime to stop that container.
405
+
The default is to inherit the Pod-level value for `terminationGracePeriodSeconds`
406
+
(30 seconds if not specified), and the minimum value is 1.
407
+
See [probe-level `terminationGracePeriodSeconds`](#probe-level-terminationgraceperiodseconds)
408
+
for more detail.
394
409
395
410
{{< note >}}
396
411
Before Kubernetes 1.20, the field `timeoutSeconds` was not respected for exec probes:
0 commit comments