From ef297288fa7dbf9ac0b3a0d1efda28116bf2fdc1 Mon Sep 17 00:00:00 2001 From: Amit Sharma Date: Sat, 12 Mar 2022 14:13:06 +0530 Subject: [PATCH 1/2] Updated configure-liveness-readiness-startup-probes.md We don't need to pass -r flag with rm command to delete a file. --- .../configure-liveness-readiness-startup-probes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md index f0fefe975a..6762acad34 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md +++ b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md @@ -59,7 +59,7 @@ and restarts it. When the container starts, it executes this command: ```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. From a60e9203e053fd69fd90054ec8a431b98066f056 Mon Sep 17 00:00:00 2001 From: Amit Sharma Date: Sat, 12 Mar 2022 14:42:48 +0530 Subject: [PATCH 2/2] Update exec-liveness.yaml --- content/en/examples/pods/probe/exec-liveness.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/examples/pods/probe/exec-liveness.yaml b/content/en/examples/pods/probe/exec-liveness.yaml index 07bf75f85c..6a9c9b3213 100644 --- a/content/en/examples/pods/probe/exec-liveness.yaml +++ b/content/en/examples/pods/probe/exec-liveness.yaml @@ -11,7 +11,7 @@ spec: args: - /bin/sh - -c - - touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600 + - touch /tmp/healthy; sleep 30; rm -f /tmp/healthy; sleep 600 livenessProbe: exec: command: