summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-25 22:08:44 +0300
committerPaul Buetow <paul@buetow.org>2026-05-25 22:08:44 +0300
commite1a6826f2d571770f9a6f5ba02fd2b0a4e42c235 (patch)
tree18b44b260e66244020d33510ce3cfcb386a9cc4f
parentc232f057ae207757d12e94ee5cdba24933675a38 (diff)
Add NFS sentinel initContainer to pkgrepo chart for 16
-rw-r--r--f3s/pkgrepo/helm-chart/templates/deployment.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/pkgrepo/helm-chart/templates/deployment.yaml b/f3s/pkgrepo/helm-chart/templates/deployment.yaml
index 5e35c9a..4f01411 100644
--- a/f3s/pkgrepo/helm-chart/templates/deployment.yaml
+++ b/f3s/pkgrepo/helm-chart/templates/deployment.yaml
@@ -19,6 +19,23 @@ spec:
labels:
app: pkgrepo
spec:
+ initContainers:
+ - name: nfs-check-pkgrepo
+ 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: pkgrepo-storage
+ mountPath: /mnt
+ readOnly: true
containers:
- name: nginx
image: nginx:1.27-alpine