diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:28:07 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:28:07 +0300 |
| commit | 732ccfaacb5b258dc06a09e4c828e969878e271b (patch) | |
| tree | 81237b225d06a654eefb211e1fac3ab69f474708 /f3s | |
| parent | 0f35cb9d488e7f4ea66c59bb65444104156f9edf (diff) | |
Add NFS sentinel initContainer to goprecords chart for t5
Diffstat (limited to 'f3s')
| -rw-r--r-- | f3s/goprecords/helm-chart/templates/deployment.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/goprecords/helm-chart/templates/deployment.yaml b/f3s/goprecords/helm-chart/templates/deployment.yaml index 537aa3d..1ae6529 100644 --- a/f3s/goprecords/helm-chart/templates/deployment.yaml +++ b/f3s/goprecords/helm-chart/templates/deployment.yaml @@ -17,6 +17,23 @@ spec: labels: app: goprecords spec: + initContainers: + - name: nfs-check-stats + 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: goprecords-stats + mountPath: /mnt + readOnly: true containers: - name: goprecords image: registry.lan.buetow.org:30001/goprecords:0.5.1 |
