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

     1  #
     2  # Copyright (c) 2022 Ant Group
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  apiVersion: v1
     7  kind: Pod
     8  metadata:
     9    name: test-file-volume
    10  spec:
    11    terminationGracePeriodSeconds: 0
    12    runtimeClassName: kata
    13    restartPolicy: Never
    14    volumes:
    15    - name: shared-file
    16      hostPath:
    17        path: HOST_FILE
    18        type: File
    19    containers:
    20    - name: busybox-file-volume-container
    21      image: busybox
    22      volumeMounts:
    23      - name: shared-file
    24        mountPath: MOUNT_PATH
    25      command: ["/bin/sh"]
    26      args: ["-c", "tail -f /dev/null"]