apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    app: nginx
spec:
  containers:
  - name: nginx
    image: nginx:1.14.2
    ports:
    - containerPort: 80
    volumeMounts:
      - name: index1
        mountPath: /usr/share/nginx/html
  volumes:
    - name: index1
      configMap:
        name: index1
