summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-25 21:33:56 +0300
committerPaul Buetow <paul@buetow.org>2026-05-25 21:33:56 +0300
commitef2f5e184f1206df4df18026ebe8fdc193efbdd3 (patch)
tree39da84c96ac07e890fd7faf1bb2bfc887211481a
parent0880fce9cf59f5ce8571828c1f5c6395a978dab8 (diff)
Add player NFS sentinel initContainers for task 26
-rw-r--r--f3s/player/helm-chart/templates/deployment.yaml33
1 files changed, 33 insertions, 0 deletions
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