mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-23 05:58:04 +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) 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"]
|