diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:17:10 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:17:10 +0300 |
| commit | bcbc25120c5bc3982c08deb367e07a9180badd87 (patch) | |
| tree | 9a331103e60dd1acf6af63adb9596e7d0d22fb37 | |
| parent | e5e793e56bfb64b97618a45a45141544b83eb13f (diff) | |
Add NFS sentinel initContainer to miniflux-postgres chart for y5
| -rw-r--r-- | f3s/miniflux/helm-chart/templates/deployment.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
