From bcbc25120c5bc3982c08deb367e07a9180badd87 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 25 May 2026 22:17:10 +0300 Subject: Add NFS sentinel initContainer to miniflux-postgres chart for y5 --- f3s/miniflux/helm-chart/templates/deployment.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/f3s/miniflux/helm-chart/templates/deployment.yaml b/f3s/miniflux/helm-chart/templates/deployment.yaml index de36378..9407aa2 100644 --- a/f3s/miniflux/helm-chart/templates/deployment.yaml +++ b/f3s/miniflux/helm-chart/templates/deployment.yaml @@ -86,6 +86,23 @@ spec: labels: app: miniflux-postgres spec: + initContainers: + - name: nfs-check-data + image: busybox:stable + command: + - sh + - -c + - | + test -f /mnt/.nfs-sentinel || ( + echo "ERROR: NFS sentinel missing at /mnt/.nfs-sentinel" + echo "refusing to start; node likely has NFS unmounted" + echo "pod would otherwise bind-mount the local-XFS shadow" + exit 1 + ) + volumeMounts: + - name: miniflux-postgres-data + mountPath: /mnt + readOnly: true containers: - name: miniflux-postgres image: postgres:17 -- cgit v1.2.3