Skip to content

Commit c098970

Browse files
committed
dis works now
1 parent bbbc435 commit c098970

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

deployment/helm/possible-x-edc/templates/db_stateful_set.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ spec:
1616
labels:
1717
app: {{ include "possible-x-edc.fullname" . }}-postgres
1818
spec:
19+
securityContext:
20+
runAsUser: 999
21+
runAsGroup: 0
1922
containers:
2023
- name: postgres
2124
image: "{{ .Values.persistence.db.image.repository }}:{{ .Values.persistence.db.image.tag }}"
@@ -24,6 +27,10 @@ spec:
2427
- containerPort: 5432
2528
name: postgres
2629
env:
30+
- name: PGDATA
31+
value: /var/lib/postgresql/root/data
32+
- name: PGROOT
33+
value: /var/lib/postgresql/root
2734
- name: POSTGRES_DB
2835
value: "{{ .Values.persistence.db.databaseName }}"
2936
- name: POSTGRES_USER
@@ -35,7 +42,7 @@ spec:
3542
key: POSTGRES_PASSWORD
3643
volumeMounts:
3744
- name: {{ include "possible-x-edc.fullname" . }}-postgres-storage
38-
mountPath: /var/lib/postgresql
45+
mountPath: /var/lib/postgresql/root
3946
volumeClaimTemplates:
4047
- metadata:
4148
name: {{ include "possible-x-edc.fullname" . }}-postgres-storage

0 commit comments

Comments
 (0)