diff options
| -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 |
