Skip to content

Commit a8e32d2

Browse files
committed
mounting config to /etc
1 parent 289ebec commit a8e32d2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

templates/postgresql/postgresql-statefulset.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
containers:
2525
- image: "{{ .Values.api.image.repository }}/postgresql:{{ .Values.postgresql.image.tag | default .Chart.AppVersion }}"
2626
name: postgresql
27+
args: ["-c", "config_file=/etc/postgresql/postgresql.conf"]
2728
securityContext:
2829
seccompProfile:
2930
type: RuntimeDefault
@@ -38,7 +39,7 @@ spec:
3839
- mountPath: /docker-entrypoint-initdb.d/initdb.sh
3940
name: postgresql-initdb
4041
subPath: initdb.sh
41-
- mountPath: /var/lib/postgresql/data/postgresql.conf
42+
- mountPath: /etc/postgresql/postgresql.conf
4243
name: postgresql-config
4344
subPath: postgresql.conf
4445
- mountPath: /dev/shm

0 commit comments

Comments
 (0)