kata-containers/tests/integration/kubernetes/runtimeclass_workloads/pod-readonly-volume.yaml
ChengyuZhu6 1820b02993 tests: replace busybox from docker with quay in guest pull
To prevent download failures caused by high traffic to the Docker image,
opt for quay.io/prometheus/busybox:latest over docker.io/library/busybox:latest .

Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
2024-06-03 01:14:16 -05:00

28 lines
559 B
YAML

#
# Copyright (c) 2021 Ant Group
#
# SPDX-License-Identifier: Apache-2.0
#
apiVersion: v1
kind: Pod
metadata:
name: test-readonly-volume
spec:
terminationGracePeriodSeconds: 0
runtimeClassName: kata
restartPolicy: Never
volumes:
- name: shared-data
hostPath:
path: /tmp
type: Directory
containers:
- name: busybox-ro-volume-container
image: quay.io/prometheus/busybox:latest
volumeMounts:
- name: shared-data
mountPath: /tmp
readOnly: true
command: ["/bin/sh"]
args: ["-c", "tail -f /dev/null"]