summaryrefslogtreecommitdiff
path: root/f3s
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-25 21:45:51 +0300
committerPaul Buetow <paul@buetow.org>2026-05-25 21:45:51 +0300
commit3a307bff0cdab9703729402adb5748d9484d2aec (patch)
tree75dc5be04db01255c12eef48004cd654d7d64d0b /f3s
parent76349a97b10275bd781f51b8f5fb4626a1653bec (diff)
Add NFS sentinel check to anki chart for o5
Diffstat (limited to 'f3s')
-rw-r--r--f3s/anki-sync-server/helm-chart/templates/deployment.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/anki-sync-server/helm-chart/templates/deployment.yaml b/f3s/anki-sync-server/helm-chart/templates/deployment.yaml
index cc06fb7..9797824 100644
--- a/f3s/anki-sync-server/helm-chart/templates/deployment.yaml
+++ b/f3s/anki-sync-server/helm-chart/templates/deployment.yaml
@@ -17,6 +17,23 @@ spec:
labels:
app: anki-sync-server
spec:
+ initContainers:
+ - name: nfs-check-anki-data
+ 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: anki-data
+ mountPath: /mnt
+ readOnly: true
containers:
- name: anki-sync-server
image: registry.lan.buetow.org:30001/anki-sync-server:25.07.5b