19 lines
485 B
YAML
19 lines
485 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: dapi-test-pod
|
|
spec:
|
|
containers:
|
|
- name: test-container
|
|
image: registry.k8s.io/busybox
|
|
command: [ "/bin/sh", "-c", "ls /etc/config/" ]
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /etc/config
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
# Indiquez le nom de la ConfigMap contenant les fichiers que vous souhaitez ajouter au conteneur
|
|
name: special-config
|
|
restartPolicy: Never
|