apiVersion: v1
kind: Pod
metadata:
  name: helloworld-nginx
  labels:
    app: helloworld-nginx
spec:
  containers:
    - name: nginx
      image: nginx:1.11
      ports:
        - containerPort: 80
      volumeMounts:
        - name: config-volume
          mountPath: /etc/nginx/conf.d
    - name: docker-nodejs-demo
      image: peelmicro/docker-nodejs-demo
      ports:
        - containerPort: 3000
  volumes:
    - name: config-volume
      configMap:
        name: nginx-config
        items:
          - key: reverseproxy.conf
            path: reverseproxy.conf
