diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 21:30:24 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 21:30:24 +0300 |
| commit | 0880fce9cf59f5ce8571828c1f5c6395a978dab8 (patch) | |
| tree | 32404fea4ee7503dbb1d59415397e6cb2f25173d | |
| parent | 3660d8695019ab022105a7369d89cbc1ebc508e1 (diff) | |
Add NFS sentinel initContainer for git-server s5
| -rw-r--r-- | f3s/git-server/helm-chart/templates/deployment.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index 41dff7c..31ac14b 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -22,6 +22,23 @@ spec: securityContext: fsGroup: 33 initContainers: + - name: nfs-check-repos + 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: repos + mountPath: /mnt + readOnly: true + - name: setup image: alpine:3.19 command: |
