diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:11:08 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:11:08 +0300 |
| commit | b23f5770907c82f559a79d54ee990c6c1887d889 (patch) | |
| tree | c17dc243d2bb24b80bc296de34c7f13168bf5b68 | |
| parent | e1a6826f2d571770f9a6f5ba02fd2b0a4e42c235 (diff) | |
Add NFS sentinel initContainers to jellyfin chart for v5
| -rw-r--r-- | f3s/jellyfin/helm-chart/templates/deployment.yaml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/f3s/jellyfin/helm-chart/templates/deployment.yaml b/f3s/jellyfin/helm-chart/templates/deployment.yaml index eef2fd4..3da0348 100644 --- a/f3s/jellyfin/helm-chart/templates/deployment.yaml +++ b/f3s/jellyfin/helm-chart/templates/deployment.yaml @@ -17,6 +17,55 @@ spec: labels: app: jellyfin-server spec: + initContainers: + - name: nfs-check-config + 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: jellyfin-config + mountPath: /mnt + readOnly: true + - name: nfs-check-libraries + 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: jellyfin-libraries + mountPath: /mnt + readOnly: true + - 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: jellyfin-data + mountPath: /mnt + readOnly: true containers: - name: jellyfin image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
