diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:02:22 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:02:22 +0300 |
| commit | 9996e31c28e274dd1752d3ea562aa62de3b871f0 (patch) | |
| tree | 9bee4f591aa40248b7defcf25c5f6c600ee6310f | |
| parent | 3a307bff0cdab9703729402adb5748d9484d2aec (diff) | |
Add NFS sentinel initContainers to radicale chart for 36
| -rw-r--r-- | f3s/radicale/helm-chart/templates/deployment.yaml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/f3s/radicale/helm-chart/templates/deployment.yaml b/f3s/radicale/helm-chart/templates/deployment.yaml index 92b0e00..c58cdbd 100644 --- a/f3s/radicale/helm-chart/templates/deployment.yaml +++ b/f3s/radicale/helm-chart/templates/deployment.yaml @@ -18,6 +18,38 @@ spec: app: radicale spec: initContainers: + - name: nfs-check-collections + 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: radicale-collections + mountPath: /mnt + readOnly: true + - name: nfs-check-auth + 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: radicale-auth + mountPath: /mnt + readOnly: true - name: debug-auth-and-mounts image: busybox:1.36 command: ["/bin/sh", "-c"] |
