blob: b9e2c16b08d7e43053b75e6a2d5a9a93e218531e [file] [log] [blame]
Gopinath Taget9b609e02018-03-07 16:02:50 -08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: xos-core
5 labels:
6 app: xos-core
7spec:
8 replicas: 1
9 template:
10 metadata:
11 labels:
12 app: xos-core
13 spec:
14 containers:
15 - name: xos-core
16 image: {{ .Values.pull_docker_registry }}{{ .Values.images.xos_core.repository }}:{{ .Values.images.xos_core.tag }}
17 command: ["/bin/bash", "-c", "cd coreapi; ./start_coreapi.sh"]
18 ports:
19 - containerPort: 50051
20 port: 50051
21 protocol: TCP
22 - containerPort: 50055
23 port: 50055
24 protocol: TCP
25 volumeMounts:
26 - name: certchain-volume
27 mountPath: /usr/local/share/ca-certificates
28 - name: coreapi-volume
29 mountPath: /opt/cord_profile
30 readOnly: true
31 - name: xos-core-config
32 mountPath: /opt/xos/xos_config.yaml
33 subPath: config/xos_config.yaml
34 - name: initial-data-config
35 mountPath: /opt/xos/core/migrations/initial_data.yaml
36 subPath: migrations/initial_data.yaml
37 volumes:
38 - name: certchain-volume
39 secret:
40 secretName: cert-chain-secret
41 - name: coreapi-volume
42 secret:
43 secretName: coreapi-cert-secret
44 items:
45 - key: core_api_cert.pem
46 path: coreapisecret/core_api_cert.pem
47 - key: core_api_key.pem
48 path: coreapisecret/core_api_key.pem
49 - name: xos-core-config
50 configMap:
51 name: xos-core
52 items:
53 - key: config
54 path: config/xos_config.yaml
55 - name: initial-data-config
56 configMap:
57 name: xos-initial-data
58 items:
59 - key: config
60 path: migrations/initial_data.yaml