apiVersion: v1
kind: Pod
metadata:
  name: fortune-configmap-volume-with-items
spec:
  containers:
  - image: nginx:alpine
    name: web-server
    volumeMounts:
      - mountPath: /usr/share/nginx/html
        name: html
        readOnly: true
      - name: config
        mountPath: /etc/nginx/conf.d
        readOnly: true
    ports:
    - containerPort: 80
      protocol: TCP
  volumes:
  - name: html
    emptyDir: {}
  - name: config
    configMap:
      name: fortune-config
      items:
        - key: my-nginx-config.conf
          path: gzip.conf