@@ -8,11 +8,11 @@ weight: 140
8
8
9
9
This page shows how to configure liveness, readiness and startup probes for containers.
10
10
11
- The [ kubelet] ( /docs/reference/command-line-tools-reference/kubelet/ ) uses liveness probes to know when to
12
- restart a container. For example, liveness probes could catch a deadlock,
13
- where an application is running, but unable to make progress. Restarting a
14
- container in such a state can help to make the application more available
15
- despite bugs.
11
+ The [ kubelet] ( /docs/reference/command-line-tools-reference/kubelet/ ) uses
12
+ liveness probes to know when to restart a container. For example, liveness
13
+ probes could catch a deadlock, where an application is running, but unable to
14
+ make progress. Restarting a container in such a state can help to make the
15
+ application more available despite bugs.
16
16
17
17
A common pattern for liveness probes is to use the same low-cost HTTP endpoint
18
18
as for readiness probes, but with a higher failureThreshold. This ensures that the pod
@@ -24,7 +24,7 @@ One use of this signal is to control which Pods are used as backends for Service
24
24
When a Pod is not ready, it is removed from Service load balancers.
25
25
26
26
The kubelet uses startup probes to know when a container application has started.
27
- If such a probe is configured, it disables liveness and readiness checks until
27
+ If such a probe is configured, liveness and readiness probes do not start until
28
28
it succeeds, making sure those probes don't interfere with the application startup.
29
29
This can be used to adopt liveness checks on slow starting containers, avoiding them
30
30
getting killed by the kubelet before they are up and running.
@@ -397,7 +397,9 @@ have a number of fields that you can use to more precisely control the behavior
397
397
liveness and readiness checks :
398
398
399
399
* `initialDelaySeconds`: Number of seconds after the container has started before startup,
400
- liveness or readiness probes are initiated. Defaults to 0 seconds. Minimum value is 0.
400
+ liveness or readiness probes are initiated. If a startup probe is defined, liveness and
401
+ readiness probe delays do not begin until the startup probe has succeeded.
402
+ Defaults to 0 seconds. Minimum value is 0.
401
403
* `periodSeconds`: How often (in seconds) to perform the probe. Default to 10 seconds.
402
404
The minimum value is 1.
403
405
* `timeoutSeconds`: Number of seconds after which the probe times out.
0 commit comments