Skip to content

Commit 8358cce

Browse files
Merge pull request #51 from CodeForPhilly/develop
Release: v0.1.4
2 parents 5add95b + 43a9825 commit 8358cce

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

helm-chart/templates/deployment.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,23 @@ spec:
2929
- name: {{ .Chart.Name }}
3030
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3131
imagePullPolicy: {{ .Values.image.pullPolicy }}
32+
env:
33+
- name: PGHOST
34+
value: {{ include "third-places.fullname" . }}-postgresql
35+
- name: PGPORT
36+
value: "5432"
37+
- name: PGDATABASE
38+
value: thirdplaces
39+
- name: PGUSER
40+
valueFrom:
41+
secretKeyRef:
42+
name: {{ .Values.postgresql.existingSecret }}
43+
key: POSTGRES_USER
44+
- name: PGPASSWORD
45+
valueFrom:
46+
secretKeyRef:
47+
name: {{ .Values.postgresql.existingSecret }}
48+
key: POSTGRES_PASSWORD
3249
ports:
3350
- name: http
3451
containerPort: {{ .Values.service.port }}

0 commit comments

Comments
 (0)