Gopinath Taget | 9b609e0 | 2018-03-07 16:02:50 -0800 | [diff] [blame^] | 1 | apiVersion: extensions/v1beta1 |
2 | kind: Deployment | ||||
3 | metadata: | ||||
4 | name: xos-db | ||||
5 | labels: | ||||
6 | app: xos-db | ||||
7 | spec: | ||||
8 | replicas: 1 | ||||
9 | template: | ||||
10 | metadata: | ||||
11 | labels: | ||||
12 | app: xos-db | ||||
13 | annotations: | ||||
14 | checksum/config-map: {{ include (print $.Chart.Name "/templates/db-configmap.yaml") . | sha256sum }} | ||||
15 | spec: | ||||
16 | containers: | ||||
17 | - name: xos-db | ||||
18 | image: {{ .Values.pull_docker_registry }}{{ .Values.images.xos_db.repository }}:{{ .Values.images.xos_db.tag }} | ||||
19 | ports: | ||||
20 | - containerPort: 5432 | ||||
21 | protocol: TCP | ||||
22 | env: | ||||
23 | - name: SERVICE_5432_NAME | ||||
24 | valueFrom: | ||||
25 | configMapKeyRef: | ||||
26 | name: xos-db | ||||
27 | key: service_5432_name |