apiVersion: v1
kind: Pod
metadata:
    name: apiserver
    labels:
        app: webserver
        tier: backend
spec:
    containers:
    - name: nodejs-app
      image: chapin/docker-demo:2.0.0
      ports:
      - containerPort: 3000
    - name: nginx
      image: nginx:1.13
      ports:
      - containerPort: 80
      volumeMounts:
      - name: nginx-config-volume
        mountPath: /etc/nginx/conf.d
    volumes:
    - name: nginx-config-volume
      configMap:
          name: nginx-conf
          items:
          - key: my-nginx.conf
            path: my-nginx.conf
