apiVersion: v1
kind: Pod
metadata:
  name: cm-pod-vol
  namespace: default
spec:
  containers:
  - name: nginx
    image: nginx:latest
    imagePullPolicy: IfNotPresent
    volumeMounts:
    - name: nginx-conf
      mountPath: /data
      readOnly: true
  volumes:
  - name: nginx-conf
    configMap:
      name: nginx-conf
