Gopinath Taget | 9b609e0 | 2018-03-07 16:02:50 -0800 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: xos-ws |
| 5 | labels: |
| 6 | app: xos-ws |
| 7 | spec: |
| 8 | replicas: 1 |
| 9 | template: |
| 10 | metadata: |
| 11 | labels: |
| 12 | app: xos-ws |
| 13 | spec: |
| 14 | containers: |
| 15 | - name: xos-ws |
| 16 | image: {{ .Values.pull_docker_registry }}{{ .Values.images.xos_ws.repository }}:{{ .Values.images.xos_ws.tag }} |
Andy Bavier | 06f2fe7 | 2018-03-08 15:37:12 -0700 | [diff] [blame^] | 17 | command: ["npm", "start", "--", "--config", "gateway-config.yml"] |
Gopinath Taget | 9b609e0 | 2018-03-07 16:02:50 -0800 | [diff] [blame] | 18 | ports: |
| 19 | - containerPort: 3000 |
| 20 | port: 3000 |
| 21 | protocol: TCP |
| 22 | volumeMounts: |
| 23 | - name: gateway-config |
| 24 | mountPath: /var/www/src/config/gateway-config.yml |
| 25 | subPath: config/gateway-config.yml |
| 26 | volumes: |
| 27 | - name: gateway-config |
| 28 | configMap: |
| 29 | name: xos-gateway |
| 30 | items: |
| 31 | - key: config |
| 32 | path: config/gateway-config.yml |