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

     1  #
     2  # Copyright (c) 2019 Intel Corporation
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  apiVersion: v1
     7  kind: Pod
     8  metadata:
     9    name: test-shared-volume
    10  spec:
    11    terminationGracePeriodSeconds: 0
    12    runtimeClassName: kata
    13    restartPolicy: Never
    14    volumes:
    15    - name: shared-data
    16      emptyDir: {}
    17    containers:
    18    - name: busybox-first-container
    19      image: quay.io/prometheus/busybox:latest
    20      volumeMounts:
    21      - name: shared-data
    22        mountPath: /tmp
    23      command: ["/bin/sh"]
    24      args: ["-c", "tail -f /dev/null"]
    25    - name: busybox-second-container
    26      image: quay.io/prometheus/busybox:latest
    27      volumeMounts:
    28      - name: shared-data
    29        mountPath: /tmp
    30      command: ["/bin/sh"]
    31      args: ["-c", "echo Hello from the busybox-second-container > /tmp/pod-data && tail -f /dev/null"]