Fix for eikek/docspell#2498. Added subPath to volume mount for postgres statefulset to make sure no conflicts happen on startup.

This commit is contained in:
2024-02-15 15:54:11 +01:00
parent e5db8cb9b5
commit 5343fa70a4

View File

@ -35,6 +35,7 @@ spec:
volumeMounts: volumeMounts:
- name: postgres-data - name: postgres-data
mountPath: /var/lib/postgresql/data mountPath: /var/lib/postgresql/data
subPath: pgdata
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: postgres-data name: postgres-data
@ -55,4 +56,4 @@ spec:
- name: postgres - name: postgres
port: 5432 port: 5432
targetPort: postgres targetPort: postgres
clusterIP: None clusterIP: None