Skip to content

Commit 943c18d

Browse files
authored
Merge pull request #43289 from Affan-7/initialDelaySeconds-in-probes
Fix initialDelaySeconds docs
2 parents 2d3fce7 + 9d9b068 commit 943c18d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ can't it is considered a failure.
207207

208208
As you can see, configuration for a TCP check is quite similar to an HTTP check.
209209
This example uses both readiness and liveness probes. The kubelet will send the
210-
first readiness probe 5 seconds after the container starts. This will attempt to
210+
first readiness probe 15 seconds after the container starts. This will attempt to
211211
connect to the `goproxy` container on port 8080. If the probe succeeds, the Pod
212212
will be marked as ready. The kubelet will continue to run this check every 10
213213
seconds.
@@ -393,8 +393,9 @@ liveness and readiness checks:
393393

394394
* `initialDelaySeconds`: Number of seconds after the container has started before startup,
395395
liveness or readiness probes are initiated. If a startup probe is defined, liveness and
396-
readiness probe delays do not begin until the startup probe has succeeded.
397-
Defaults to 0 seconds. Minimum value is 0.
396+
readiness probe delays do not begin until the startup probe has succeeded. If the value of
397+
`periodSeconds` is greater than `initialDelaySeconds` then the `initialDelaySeconds` would be
398+
ignored. Defaults to 0 seconds. Minimum value is 0.
398399
* `periodSeconds`: How often (in seconds) to perform the probe. Default to 10 seconds.
399400
The minimum value is 1.
400401
* `timeoutSeconds`: Number of seconds after which the probe times out.

content/en/examples/pods/probe/tcp-liveness-readiness.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ spec:
1313
readinessProbe:
1414
tcpSocket:
1515
port: 8080
16-
initialDelaySeconds: 5
16+
initialDelaySeconds: 15
1717
periodSeconds: 10
1818
livenessProbe:
1919
tcpSocket:
2020
port: 8080
2121
initialDelaySeconds: 15
22-
periodSeconds: 20
22+
periodSeconds: 10

0 commit comments

Comments
 (0)