mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-20 20:52:07 +00:00
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>
28 lines
559 B
YAML
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"]
|