summaryrefslogtreecommitdiff
path: root/f3s/immich/helm-chart
diff options
context:
space:
mode:
Diffstat (limited to 'f3s/immich/helm-chart')
-rw-r--r--f3s/immich/helm-chart/templates/postgres.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/f3s/immich/helm-chart/templates/postgres.yaml b/f3s/immich/helm-chart/templates/postgres.yaml
index f4e32ad..49f4a24 100644
--- a/f3s/immich/helm-chart/templates/postgres.yaml
+++ b/f3s/immich/helm-chart/templates/postgres.yaml
@@ -7,6 +7,14 @@ metadata:
namespace: services
spec:
replicas: 1
+ # Recreate (not RollingUpdate) so the old pod is fully terminated before
+ # the new one starts. The hostPath PV points at an NFS-backed directory
+ # mounted on every r-node, so RWO is not actually enforced across nodes:
+ # under RollingUpdate the new pod can start on a different node and grab
+ # the same data dir while the old pod still holds postgres' file locks,
+ # producing "could not write to file postmaster.pid: Unknown error 512".
+ strategy:
+ type: Recreate
selector:
matchLabels:
app: immich-postgres