From 5c2ab9447df43eb9f0d7223818b6daca48eeea9f Mon Sep 17 00:00:00 2001 From: Raphael Frank <04.raphael.frank@gmail.com> Date: Sun, 31 May 2026 21:05:46 +0200 Subject: [PATCH] fix db deployment issue --- infra/helm/team-devoops/templates/postgres-statefulset.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infra/helm/team-devoops/templates/postgres-statefulset.yaml b/infra/helm/team-devoops/templates/postgres-statefulset.yaml index 180423f..ec9fb96 100644 --- a/infra/helm/team-devoops/templates/postgres-statefulset.yaml +++ b/infra/helm/team-devoops/templates/postgres-statefulset.yaml @@ -27,6 +27,11 @@ spec: value: {{ .Values.database.user | quote }} - name: POSTGRES_DB value: {{ .Values.database.name | quote }} + # Ceph RBD volumes are ext4-formatted and contain a lost+found + # directory, so initdb cannot use the mount root. Point PGDATA at + # an empty subdirectory instead. + - name: PGDATA + value: /var/lib/postgresql/data/pgdata - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: