summaryrefslogtreecommitdiff
path: root/f3s
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-25 22:24:21 +0300
committerPaul Buetow <paul@buetow.org>2026-05-25 22:24:21 +0300
commited928f41bb65464d75bb1b6dafc70996a20f432a (patch)
treeb701d96d3ae49c131b95bd6c10ac454656453f8a /f3s
parentbb800b10f9dec594420032ef0f7fa055e197b02a (diff)
Add NFS sentinel initContainers to audiobookshelf chart for q5
Diffstat (limited to 'f3s')
-rw-r--r--f3s/audiobookshelf/helm-chart/templates/deployment.yaml49
1 files changed, 49 insertions, 0 deletions
diff --git a/f3s/audiobookshelf/helm-chart/templates/deployment.yaml b/f3s/audiobookshelf/helm-chart/templates/deployment.yaml
index a8d513f..7c598ce 100644
--- a/f3s/audiobookshelf/helm-chart/templates/deployment.yaml
+++ b/f3s/audiobookshelf/helm-chart/templates/deployment.yaml
@@ -17,6 +17,55 @@ spec:
labels:
app: audiobookshelf
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: audiobookshelf-config
+ mountPath: /mnt
+ readOnly: true
+ - name: nfs-check-audiobooks
+ 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: audiobookshelf-audiobooks
+ mountPath: /mnt
+ readOnly: true
+ - name: nfs-check-podcasts
+ 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: audiobookshelf-podcasts
+ mountPath: /mnt
+ readOnly: true
containers:
- name: audiobookshelf
image: ghcr.io/advplyr/audiobookshelf