github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/integration/kubernetes/runtimeclass_workloads/pod-readonly-volume.yaml (about) 1 # 2 # Copyright (c) 2021 Ant Group 3 # 4 # SPDX-License-Identifier: Apache-2.0 5 # 6 apiVersion: v1 7 kind: Pod 8 metadata: 9 name: test-readonly-volume 10 spec: 11 terminationGracePeriodSeconds: 0 12 runtimeClassName: kata 13 restartPolicy: Never 14 volumes: 15 - name: shared-data 16 hostPath: 17 path: /tmp 18 type: Directory 19 containers: 20 - name: busybox-ro-volume-container 21 image: busybox 22 volumeMounts: 23 - name: shared-data 24 mountPath: /tmp 25 readOnly: true 26 command: ["/bin/sh"] 27 args: ["-c", "tail -f /dev/null"]