apiVersion: v1
kind: Pod
metadata:
  name: liveness-exec-pod
  labels:
    name: liveness-exec-pod
spec:
  containers:
  - name: liveness-exec-container
    image: busybox
    imagePullPolicy: IfNotPresent
    command:  ["/bin/sh","-c","touch /tmp/live ; sleep 60; rm -rf /tmp/live; sleep
3600"]
    livenessProbe:
        exec: 
          command:  ["test","-e","/tmp/live"]
        initialDelaySeconds: 1
        periodSeconds: 3
