1apiVersion: v1 2kind: Pod 3metadata: 4 labels: 5 test: liveness 6 name: liveness-exec 7spec: 8 containers: 9 - args: 10 - /bin/sh 11 - -c 12 - echo ok > /tmp/health; sleep 10; rm -rf /tmp/health; sleep 600 13 image: {{.BusyBoxImage}} 14 livenessProbe: 15 exec: 16 command: 17 - cat 18 - /tmp/health 19 initialDelaySeconds: 15 20 timeoutSeconds: 1 21 name: liveness-exec