Merge pull request #32221 from amitech/patch-1
Updated configure-liveness-readiness-startup-probes.md
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ and restarts it.
|
|||||||
When the container starts, it executes this command:
|
When the container starts, it executes this command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
/bin/sh -c "touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600"
|
/bin/sh -c "touch /tmp/healthy; sleep 30; rm -f /tmp/healthy; sleep 600"
|
||||||
```
|
```
|
||||||
|
|
||||||
For the first 30 seconds of the container's life, there is a `/tmp/healthy` file.
|
For the first 30 seconds of the container's life, there is a `/tmp/healthy` file.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
|
- touch /tmp/healthy; sleep 30; rm -f /tmp/healthy; sleep 600
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
|
|||||||
Reference in New Issue
Block a user