diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-15 16:23:19 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-15 16:23:19 +0200 |
| commit | 599c9483eaaebb8b860dd071e451a94b1ac48acf (patch) | |
| tree | c8356a61c2ac440e3dffa2fd1d14b147db260350 /f3s/syncthing | |
| parent | 5f32f32b613b9c0e721bc768983a8e04937b76e1 (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.yaml | 25 |
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 |
