apiVersion: v1
kind: Pod
metadata:
  labels:
    test: liveness
  name: exec-liveness-assume-1-second-default-timeout
spec:
  terminationGracePeriodSeconds: 0
  containers:
  - name: exec-liveness-assume-1-second-default-timeout
    image: mcr.microsoft.com/oss/busybox/busybox:1.33.1
    args:
    - /bin/sh
    - -c
    - touch /tmp/healthy; while true; do sleep 5; done
    livenessProbe:
      exec:
        command: ['sh', '-c', 'sleep 5 && cat /tmp/healthy']
      initialDelaySeconds: 1
      periodSeconds: 1
      failureThreshold: 1
  nodeSelector:
    kubernetes.io/os: linux
