kata-containers/tests/integration/kubernetes/runtimeclass_workloads/pod-file-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) 2022 Ant Group
#
# SPDX-License-Identifier: Apache-2.0
#
apiVersion: v1
kind: Pod
metadata:
name: test-file-volume
spec:
terminationGracePeriodSeconds: 0
runtimeClassName: kata
restartPolicy: Never
nodeName: NODE
volumes:
- name: shared-file
hostPath:
path: HOST_FILE
type: File
containers:
- name: busybox-file-volume-container
image: quay.io/prometheus/busybox:latest
volumeMounts:
- name: shared-file
mountPath: MOUNT_PATH
command: ["/bin/sh"]
args: ["-c", "tail -f /dev/null"]