diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:06:59 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:06:59 +0300 |
| commit | c232f057ae207757d12e94ee5cdba24933675a38 (patch) | |
| tree | 21515ac91dc1352726de258a74502df1dab140bf /f3s | |
| parent | bd7b5396447e3a4f0351799e5caedad6d279b1a6 (diff) | |
Add NFS sentinel initContainer to registry chart for 46
Diffstat (limited to 'f3s')
| -rw-r--r-- | f3s/registry/helm-chart/templates/deployment.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/registry/helm-chart/templates/deployment.yaml b/f3s/registry/helm-chart/templates/deployment.yaml index f7b055b..f78525d 100644 --- a/f3s/registry/helm-chart/templates/deployment.yaml +++ b/f3s/registry/helm-chart/templates/deployment.yaml @@ -19,6 +19,23 @@ spec: labels: app: docker-registry spec: + initContainers: + - name: nfs-check-registry + 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: registry-storage + mountPath: /mnt + readOnly: true containers: - name: registry image: registry:2 |
