summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--f3s/wallabag/helm-chart/templates/deployment.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/f3s/wallabag/helm-chart/templates/deployment.yaml b/f3s/wallabag/helm-chart/templates/deployment.yaml
index d0c4ce0..6c653bd 100644
--- a/f3s/wallabag/helm-chart/templates/deployment.yaml
+++ b/f3s/wallabag/helm-chart/templates/deployment.yaml
@@ -17,6 +17,39 @@ spec:
labels:
app: wallabag
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: wallabag-data
+ mountPath: /mnt
+ readOnly: true
+ - name: nfs-check-images
+ 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: wallabag-images
+ mountPath: /mnt
+ readOnly: true
containers:
- name: wallabag
image: wallabag/wallabag