summaryrefslogtreecommitdiff
path: root/f3s/audiobookshelf/helm-chart
diff options
context:
space:
mode:
Diffstat (limited to 'f3s/audiobookshelf/helm-chart')
-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