Add probe yaml examples

This commit is contained in:
giri.kuncoro
2020-06-06 18:08:13 +07:00
parent 838d1b180c
commit 9cb190a82b
3 changed files with 64 additions and 0 deletions
@@ -0,0 +1,21 @@
apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: liveness-exec
spec:
containers:
- name: liveness
image: k8s.gcr.io/busybox
args:
- /bin/sh
- -c
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
livenessProbe:
exec:
command:
- cat
- /tmp/healthy
initialDelaySeconds: 5
periodSeconds: 5