Zack Williams | 3c28257 | 2018-01-29 14:41:28 -0700 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: xos-core |
| 5 | labels: |
| 6 | app: xos-core |
| 7 | spec: |
| 8 | replicas: 1 |
| 9 | template: |
| 10 | metadata: |
| 11 | labels: |
| 12 | app: xos-core |
| 13 | spec: |
| 14 | containers: |
| 15 | - name: xos-core |
| 16 | image: {{ .Values.images.xos_core.repository }}:{{ .Values.images.xos_core.tag }} |
| 17 | # command: ["/bin/bash", "-c", "cd coreapi; ./start_coreapi.sh"] |
| 18 | command: ["/bin/bash", "-c", "sleep 86400"] |
| 19 | ports: |
| 20 | - containerPort: 50051 |
| 21 | protocol: TCP |
| 22 | - containerPort: 50055 |
| 23 | protocol: TCP |
| 24 | volumeMounts: |
| 25 | - name: xos-core-config |
| 26 | mountPath: /opt/xos/xos_config.yaml |
| 27 | subPath: config/xos_config.yaml |
| 28 | volumes: |
| 29 | - name: xos-core-config |
| 30 | configMap: |
| 31 | name: xos-core |
| 32 | items: |
| 33 | - key: config |
| 34 | path: config/xos_config.yaml |