Merge pull request #33883 from Arhell/upd-configure-id
[id] updated configure-liveness-readiness-startup-probes.md
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ kode selain 0, maka kubelet akan mematikan Container dan mengulangnya kembali.
|
|||||||
Saat dimulai, Container akan menjalankan perintah berikut:
|
Saat dimulai, Container akan menjalankan perintah berikut:
|
||||||
|
|
||||||
```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"
|
||||||
```
|
```
|
||||||
|
|
||||||
Container memiliki berkas `/tmp/healthy` pada saat 30 detik pertama setelah dijalankan.
|
Container memiliki berkas `/tmp/healthy` pada saat 30 detik pertama setelah dijalankan.
|
||||||
|
|||||||
@@ -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