kind: Pod
apiVersion: v1
metadata:
  name: nginx-pod-cm-2
spec:
  containers:
  - name: nginx
    image: nginx:alpine
    env:
      - name: foo
        valueFrom:
          configMapKeyRef:
            name: my-cm-2
            key: foo
      - name: SPECIAL_LEVEL_KEY
        valueFrom:
          configMapKeyRef:
            name: my-cm-2
            key: special.how
 
    ports:
      - containerPort: 80
        name: http
        protocol: TCP
