summaryrefslogtreecommitdiff
path: root/f3s/syncthing
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-15 16:23:19 +0200
committerPaul Buetow <paul@buetow.org>2026-02-15 16:23:19 +0200
commit599c9483eaaebb8b860dd071e451a94b1ac48acf (patch)
treec8356a61c2ac440e3dffa2fd1d14b147db260350 /f3s/syncthing
parent5f32f32b613b9c0e721bc768983a8e04937b76e1 (diff)
Add health probes to syncthing deployment to auto-recover from stale NFS mounts
Added startup, liveness, and readiness probes to the syncthing deployment. The liveness probe will automatically restart the pod when it becomes unresponsive due to stale NFS file handles, preventing filesystem errors and service disruptions. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/syncthing')
-rw-r--r--f3s/syncthing/helm-chart/templates/deployment.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/f3s/syncthing/helm-chart/templates/deployment.yaml b/f3s/syncthing/helm-chart/templates/deployment.yaml
index 9a85a17..9096e2e 100644
--- a/f3s/syncthing/helm-chart/templates/deployment.yaml
+++ b/f3s/syncthing/helm-chart/templates/deployment.yaml
@@ -19,6 +19,31 @@ spec:
ports:
- containerPort: 8384
- containerPort: 22000
+ # Startup probe: give syncthing time to initialize (especially if NFS is slow)
+ startupProbe:
+ httpGet:
+ path: /
+ port: 8384
+ initialDelaySeconds: 10
+ periodSeconds: 5
+ timeoutSeconds: 3
+ failureThreshold: 24 # 120 seconds total (24 * 5s)
+ # Liveness probe: restart pod if syncthing becomes unresponsive (stale NFS)
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 8384
+ periodSeconds: 30
+ timeoutSeconds: 5
+ failureThreshold: 3 # Restart after 90 seconds of failures
+ # Readiness probe: remove from service if not ready
+ readinessProbe:
+ httpGet:
+ path: /
+ port: 8384
+ periodSeconds: 10
+ timeoutSeconds: 3
+ failureThreshold: 2
volumeMounts:
- name: syncthing-config
mountPath: /config