Skip to content

Commit 66c0e22

Browse files
Document probe delay if startup is defined
If a startup probe is defined, readiness probe delays do not start until after it has succeeded.
1 parent e9bfdf6 commit 66c0e22

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ weight: 140
88

99
This page shows how to configure liveness, readiness and startup probes for containers.
1010

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.
1616

1717
The kubelet uses readiness probes to know when a container is ready to start
1818
accepting traffic. A Pod is considered ready when all of its containers are ready.
1919
One use of this signal is to control which Pods are used as backends for Services.
2020
When a Pod is not ready, it is removed from Service load balancers.
2121

2222
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
2424
it succeeds, making sure those probes don't interfere with the application startup.
2525
This can be used to adopt liveness checks on slow starting containers, avoiding them
2626
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
380380
checks:
381381

382382
* `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.
384385
* `periodSeconds`: How often (in seconds) to perform the probe. Default to 10
385386
seconds. Minimum value is 1.
386387
* `timeoutSeconds`: Number of seconds after which the probe times out. Defaults

0 commit comments

Comments
 (0)