diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:31:34 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:31:34 +0300 |
| commit | 55acd9c2d37094cf169a91fc2c15af4eb37ab33e (patch) | |
| tree | 360212dd69ce12f2f21b832c94f9d5f2d1ac2e91 | |
| parent | 7ef89616f9aad271be0c62eef2b512fe58d22c6b (diff) | |
Add NFS sentinel initContainers to xplayer chart for 76
| -rw-r--r-- | f3s/xplayer/helm-chart/templates/deployment.yaml | 33 |
1 files changed, 33 insertions, 0 deletions
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 |
