apiVersion: v1
kind: Pod
metadata:
  name: configmap-volume
spec:
  containers:
  - name: configmap-volume
    image: stefanprodan/podinfo
    env:
    - name: PODINFO_CONFIG_PATH
      value: /config/
    volumeMounts:
    - mountPath: /config/input.json
      name: config
      subPath: input.json
  volumes:
  - name: config
    configMap:
      name: file-cm