k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/test/fixtures/doc-yaml/user-guide/liveness/exec-liveness.yaml.in (about)

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    labels:
     5      test: liveness
     6    name: liveness-exec
     7  spec:
     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