github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/integration/kubernetes/runtimeclass_workloads/pod-liveness.yaml (about)

     1  #
     2  # Copyright (c) 2018 Intel Corporation
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  apiVersion: v1
     7  kind: Pod
     8  metadata:
     9    labels:
    10      test: liveness
    11    name: liveness-exec
    12  spec:
    13    terminationGracePeriodSeconds: 0
    14    runtimeClassName: kata
    15    containers:
    16    - name: liveness
    17      image: quay.io/prometheus/busybox:latest
    18      args:
    19      - /bin/sh
    20      - -c
    21      - touch /tmp/healthy; echo "Check status"; sleep 6; rm -rf /tmp/healthy; echo "Check dead"; sleep 12
    22      livenessProbe:
    23        exec:
    24          command:
    25          - cat
    26          - /tmp/healthy
    27        initialDelaySeconds: 3
    28        periodSeconds: 3