From 15fc727c7d563e636b41309f51d41636c311cc00 Mon Sep 17 00:00:00 2001 From: Avi Greenbury Date: Wed, 3 Dec 2025 19:53:49 +0000 Subject: [PATCH] Change volume mount path for postgres to just /var/lib/postgresql postgres now expects to create a dir in /var/lib/postgresql so that has to be writeable, and it isn't if the volume is mounted at /var/lib/postgresql/data https://github.com/docker-library/postgres/pull/1259 --- tracey-database/postgresql-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracey-database/postgresql-deployment.yaml b/tracey-database/postgresql-deployment.yaml index e6b28fb..29f59d0 100644 --- a/tracey-database/postgresql-deployment.yaml +++ b/tracey-database/postgresql-deployment.yaml @@ -26,7 +26,7 @@ spec: - containerPort: 5432 volumeMounts: - name: postgresql-storage - mountPath: /var/lib/postgresql/data + mountPath: /var/lib/postgresql - name: init-scripts mountPath: /docker-entrypoint-initdb.d volumes: @@ -35,4 +35,4 @@ spec: claimName: postgresql-pvc - name: init-scripts configMap: - name: postgresql-init \ No newline at end of file + name: postgresql-init