Skip to content

Commit 492be37

Browse files
committed
Update config for PGDATA - PG17
1 parent 903f689 commit 492be37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

osm-seed/templates/db/db-statefulset.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ spec:
3232
containerPort: 5432
3333
protocol: TCP
3434
env:
35-
- name: GET_HOSTS_FROM
36-
value: dns
35+
# - name: GET_HOSTS_FROM
36+
# value: dns
3737
- name: POSTGRES_HOST
3838
value: {{ .Release.Name }}-db
3939
- name: POSTGRES_DB
@@ -47,7 +47,7 @@ spec:
4747
- name: ENVIRONMENT
4848
value: {{ .Values.environment }}
4949
- name: PGDATA
50-
value: {{ .Values.db.persistenceDisk.mountPath }}
50+
value: {{ .Values.db.env.PGDATA }}
5151
- name: POD_IP
5252
valueFrom: { fieldRef: { fieldPath: status.podIP } }
5353
{{- if .Values.db.postgresqlConfig.enabled }}
@@ -76,8 +76,8 @@ spec:
7676
periodSeconds: 5
7777
volumeMounts:
7878
- name: postgres-storage
79-
mountPath: /var/lib/postgresql/data
80-
subPath: {{ .Values.db.persistenceDisk.subPath }}
79+
mountPath: {{ .Values.db.persistenceDisk.mountPath }}
80+
# subPath: {{ .Values.db.persistenceDisk.subPath }}
8181
- name: shared-memory
8282
mountPath: /dev/shm
8383
{{- if .Values.db.postgresqlConfig.enabled }}

0 commit comments

Comments
 (0)