Skip to content

Commit 2bad323

Browse files
authored
Merge pull request #40072 from michaelruigrok/patch-1
Document probe delay if startup is defined
2 parents 5db30bd + 730302b commit 2bad323

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ 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
A common pattern for liveness probes is to use the same low-cost HTTP endpoint
1818
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
2424
When a Pod is not ready, it is removed from Service load balancers.
2525

2626
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
2828
it succeeds, making sure those probes don't interfere with the application startup.
2929
This can be used to adopt liveness checks on slow starting containers, avoiding them
3030
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
397397
liveness and readiness checks:
398398

399399
* `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.
401403
* `periodSeconds`: How often (in seconds) to perform the probe. Default to 10 seconds.
402404
The minimum value is 1.
403405
* `timeoutSeconds`: Number of seconds after which the probe times out.

0 commit comments

Comments
 (0)