Fix DB pod

This commit is contained in:
dvirlabs 2026-02-02 19:28:58 +02:00
parent b22b692d61
commit 238920ddf3

View File

@ -29,9 +29,14 @@ spec:
- |
chown -R 999:999 /var/lib/postgresql/data
chmod 700 /var/lib/postgresql/data
mkdir -p /var/run/postgresql
chown -R 999:999 /var/run/postgresql
chmod 775 /var/run/postgresql
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data
- name: postgres-run
mountPath: /var/run/postgresql
securityContext:
runAsUser: 0
containers:
@ -66,6 +71,8 @@ spec:
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data
- name: postgres-run
mountPath: /var/run/postgresql
- name: init-script
mountPath: /docker-entrypoint-initdb.d
resources:
@ -90,6 +97,8 @@ spec:
- name: init-script
configMap:
name: {{ include "invy.fullname" . }}-db-schema
- name: postgres-run
emptyDir: {}
{{- if .Values.postgres.persistence.enabled }}
volumeClaimTemplates:
- metadata: