blob: fd49a1a9688990a38794cefa4d7e0c684a75cea9 [file] [log] [blame]
Gopinath Taget9b609e02018-03-07 16:02:50 -08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: xos-ws
5 labels:
6 app: xos-ws
7spec:
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 Bavier06f2fe72018-03-08 15:37:12 -070017 command: ["npm", "start", "--", "--config", "gateway-config.yml"]
Gopinath Taget9b609e02018-03-07 16:02:50 -080018 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