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
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,19 @@ 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
The kubelet uses readiness probes to know when a container is ready to start
18
18
accepting traffic. A Pod is considered ready when all of its containers are ready.
19
19
One use of this signal is to control which Pods are used as backends for Services.
20
20
When a Pod is not ready, it is removed from Service load balancers.
21
21
22
22
The kubelet uses startup probes to know when a container application has started.
23
-
If such a probe is configured, it disables liveness and readiness checks until
23
+
If such a probe is configured, liveness and readiness probes do not start until
24
24
it succeeds, making sure those probes don't interfere with the application startup.
25
25
This can be used to adopt liveness checks on slow starting containers, avoiding them
26
26
getting killed by the kubelet before they are up and running.
@@ -380,7 +380,8 @@ you can use to more precisely control the behavior of startup, liveness and read
380
380
checks:
381
381
382
382
* `initialDelaySeconds`: Number of seconds after the container has started
383
-
before startup, liveness or readiness probes are initiated. Defaults to 0 seconds. Minimum value is 0.
383
+
before startup, liveness or readiness probes are initiated. If a startup probe is defined, liveness and readiness probe delays do not begin until the startup probe has succeeded.
384
+
Defaults to 0 seconds. Minimum value is 0.
384
385
* `periodSeconds`: How often (in seconds) to perform the probe. Default to 10
385
386
seconds. Minimum value is 1.
386
387
* `timeoutSeconds`: Number of seconds after which the probe times out. Defaults
0 commit comments