From ef2f5e184f1206df4df18026ebe8fdc193efbdd3 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 25 May 2026 21:33:56 +0300 Subject: Add player NFS sentinel initContainers for task 26 --- f3s/player/helm-chart/templates/deployment.yaml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/f3s/player/helm-chart/templates/deployment.yaml b/f3s/player/helm-chart/templates/deployment.yaml index 337d67a..04379d9 100644 --- a/f3s/player/helm-chart/templates/deployment.yaml +++ b/f3s/player/helm-chart/templates/deployment.yaml @@ -22,6 +22,39 @@ spec: runAsUser: 65534 runAsGroup: 65534 fsGroup: 65534 + 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: player-data + mountPath: /mnt + readOnly: true + - name: nfs-check-media + 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: player-media + mountPath: /mnt + readOnly: true containers: - name: player image: registry.lan.buetow.org:30001/player:dd3a961 -- cgit v1.2.3