From 85dbcf55e51fbaab3719b148d5c5fb7d2586fdc2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 25 May 2026 22:34:14 +0300 Subject: Add NFS sentinel initContainers to wallabag chart for 86 --- f3s/wallabag/helm-chart/templates/deployment.yaml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/f3s/wallabag/helm-chart/templates/deployment.yaml b/f3s/wallabag/helm-chart/templates/deployment.yaml index d0c4ce0..6c653bd 100644 --- a/f3s/wallabag/helm-chart/templates/deployment.yaml +++ b/f3s/wallabag/helm-chart/templates/deployment.yaml @@ -17,6 +17,39 @@ spec: labels: app: wallabag 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: wallabag-data + mountPath: /mnt + readOnly: true + - name: nfs-check-images + 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: wallabag-images + mountPath: /mnt + readOnly: true containers: - name: wallabag image: wallabag/wallabag -- cgit v1.2.3