diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:05:32 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:05:32 +0300 |
| commit | bd7b5396447e3a4f0351799e5caedad6d279b1a6 (patch) | |
| tree | 5e7105e427e16547269181c1b4a0d8ee7eefbe4a /f3s | |
| parent | 9996e31c28e274dd1752d3ea562aa62de3b871f0 (diff) | |
Add NFS sentinel initContainers to syncthing chart for 56
Diffstat (limited to 'f3s')
| -rw-r--r-- | f3s/syncthing/helm-chart/templates/deployment.yaml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/f3s/syncthing/helm-chart/templates/deployment.yaml b/f3s/syncthing/helm-chart/templates/deployment.yaml index f0d55e3..09d1860 100644 --- a/f3s/syncthing/helm-chart/templates/deployment.yaml +++ b/f3s/syncthing/helm-chart/templates/deployment.yaml @@ -16,6 +16,39 @@ spec: labels: app: syncthing 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: syncthing-config + 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: syncthing-data + mountPath: /mnt + readOnly: true containers: - name: syncthing image: lscr.io/linuxserver/syncthing:latest |
