Files
website/content/zh/examples/pods/pod-configmap-volume.yaml
Qiming Teng 2d0d647d0b [zh] Update configure pod configmap
This PR resyncs the configure-pod-configmap page, and translates the comments in the reference example YAML files.
2022-03-16 16:33:40 +08:00

19 lines
451 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: dapi-test-pod
spec:
containers:
- name: test-container
image: k8s.gcr.io/busybox
command: [ "/bin/sh", "-c", "ls /etc/config/" ]
volumeMounts:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
configMap:
# 提供包含要添加到容器中的文件的 ConfigMap 的名称
name: special-config
restartPolicy: Never