diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:22:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:22:29 +0300 |
| commit | bb800b10f9dec594420032ef0f7fa055e197b02a (patch) | |
| tree | a11c0a3e9dda2acb651bb9238a42fbf682a310bd | |
| parent | 94667279ac893ad63876fbf01908b739e2c9dfc4 (diff) | |
Add NFS sentinel initContainer to opodsync chart for 06
| -rw-r--r-- | f3s/opodsync/helm-chart/templates/deployment.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/opodsync/helm-chart/templates/deployment.yaml b/f3s/opodsync/helm-chart/templates/deployment.yaml index c72552a..c9855f3 100644 --- a/f3s/opodsync/helm-chart/templates/deployment.yaml +++ b/f3s/opodsync/helm-chart/templates/deployment.yaml @@ -17,6 +17,23 @@ spec: labels: app: opodsync 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: opodsync-data + mountPath: /mnt + readOnly: true containers: - name: opodsync image: ganeshlab/opodsync |
