Configmaps - Volume

 1apiVersion: v1
 2kind: Pod
 3metadata:
 4  name: dapi-test-pod
 5spec:
 6  containers:
 7    - name: test-container
 8      image: k8s.gcr.io/busybox
 9      command: [ "/bin/sh", "-c", "ls /etc/config/" ]
10      volumeMounts:
11      - name: config-volume
12        mountPath: /etc/config
13  volumes:
14    - name: config-volume
15      configMap:
16        name: special-config
17  restartPolicy: Never