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:
TheAnachronism 2024-02-15 15:54:11 +01:00
parent e5db8cb9b5
commit 5343fa70a4
Signed by: TheAnachronism
GPG Key ID: 1F9B1A7E451A4A59

View File

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