diff options
Diffstat (limited to 'f3s')
| -rw-r--r-- | f3s/navidrome/helm-chart/templates/deployment.yaml | 17 |
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 |
