summaryrefslogtreecommitdiff
path: root/f3s
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-25 21:37:08 +0300
committerPaul Buetow <paul@buetow.org>2026-05-25 21:37:08 +0300
commit971118f64bce6aa42e95e589982cc396c1242460 (patch)
treecc4501eb4b391cd4dc6684aedecca6ce9b16e928 /f3s
parentef2f5e184f1206df4df18026ebe8fdc193efbdd3 (diff)
Add apache NFS sentinel initContainer for p5
Diffstat (limited to 'f3s')
-rw-r--r--f3s/apache/helm-chart/templates/apache-deployment.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/apache/helm-chart/templates/apache-deployment.yaml b/f3s/apache/helm-chart/templates/apache-deployment.yaml
index 14bf573..b732abc 100644
--- a/f3s/apache/helm-chart/templates/apache-deployment.yaml
+++ b/f3s/apache/helm-chart/templates/apache-deployment.yaml
@@ -14,6 +14,23 @@ spec:
labels:
app: apache
spec:
+ initContainers:
+ - name: nfs-check-apache-htdocs
+ 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: apache-htdocs
+ mountPath: /mnt
+ readOnly: true
containers:
- name: apache
image: httpd:latest