summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-25 22:19:59 +0300
committerPaul Buetow <paul@buetow.org>2026-05-25 22:19:59 +0300
commit94667279ac893ad63876fbf01908b739e2c9dfc4 (patch)
tree6aa0b6eb1025dae5d5323121353585b6c5f48ae2
parentbcbc25120c5bc3982c08deb367e07a9180badd87 (diff)
Add NFS sentinel initContainer to navidrome chart for z5
-rw-r--r--f3s/navidrome/helm-chart/templates/deployment.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/navidrome/helm-chart/templates/deployment.yaml b/f3s/navidrome/helm-chart/templates/deployment.yaml
index 3fb377b..53964cf 100644
--- a/f3s/navidrome/helm-chart/templates/deployment.yaml
+++ b/f3s/navidrome/helm-chart/templates/deployment.yaml
@@ -18,6 +18,23 @@ spec:
labels:
app: navidrome
spec:
+ initContainers:
+ - name: nfs-check-music
+ 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: navidrome-music
+ mountPath: /mnt
+ readOnly: true
# Pin to r1 so the local-path PVC (which lives on r1's disk at
# /var/lib/rancher/k3s/storage) is always reachable. Without this, if
# the pod reschedules to a different node it would not find the data