blob: ca34b69e12afb3ffefccd73014d160bca7baea32 [file] [log] [blame]
Gopinath Taget9b609e02018-03-07 16:02:50 -08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: xos-db
5 labels:
6 app: xos-db
7spec:
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