From 55acd9c2d37094cf169a91fc2c15af4eb37ab33e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 25 May 2026 22:31:34 +0300 Subject: Add NFS sentinel initContainers to xplayer chart for 76 --- f3s/xplayer/helm-chart/templates/deployment.yaml | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/f3s/xplayer/helm-chart/templates/deployment.yaml b/f3s/xplayer/helm-chart/templates/deployment.yaml index 0d9c278..2630af6 100644 --- a/f3s/xplayer/helm-chart/templates/deployment.yaml +++ b/f3s/xplayer/helm-chart/templates/deployment.yaml @@ -17,6 +17,39 @@ spec: labels: app: xplayer 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: xplayer-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: xplayer-media + mountPath: /mnt + readOnly: true securityContext: runAsNonRoot: true runAsUser: 65534 -- cgit v1.2.3