Merge pull request #33837 from Arhell/upd-ja-conf
[ja] updated configure-liveness-readiness-startup-probes.md
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ Probeの動作としては、kubeletは`cat /tmp/healthy`を対象のコンテ
|
|||||||
このコンテナは、起動すると次のコマンドを実行します:
|
このコンテナは、起動すると次のコマンドを実行します:
|
||||||
|
|
||||||
```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"
|
||||||
```
|
```
|
||||||
|
|
||||||
コンテナが起動してから初めの30秒間は`/tmp/healthy`ファイルがコンテナ内に存在します。
|
コンテナが起動してから初めの30秒間は`/tmp/healthy`ファイルがコンテナ内に存在します。
|
||||||
|
|||||||
@@ -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