XOS Core complete helm initial submission
Change-Id: I2fc7ae7d06f98c0c7578df7b21a21163b13dfca1
diff --git a/xos-core/templates/ws-deployment.yaml b/xos-core/templates/ws-deployment.yaml
new file mode 100644
index 0000000..8b3a41d
--- /dev/null
+++ b/xos-core/templates/ws-deployment.yaml
@@ -0,0 +1,32 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: xos-ws
+ labels:
+ app: xos-ws
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: xos-ws
+ spec:
+ containers:
+ - name: xos-ws
+ image: {{ .Values.pull_docker_registry }}{{ .Values.images.xos_ws.repository }}:{{ .Values.images.xos_ws.tag }}
+ command: ["npm start -- --config gateway-config.yml"]
+ ports:
+ - containerPort: 3000
+ port: 3000
+ protocol: TCP
+ volumeMounts:
+ - name: gateway-config
+ mountPath: /var/www/src/config/gateway-config.yml
+ subPath: config/gateway-config.yml
+ volumes:
+ - name: gateway-config
+ configMap:
+ name: xos-gateway
+ items:
+ - key: config
+ path: config/gateway-config.yml
\ No newline at end of file