diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-10 09:47:58 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-10 09:47:58 +0300 |
| commit | 66b42766bd448856b59ec724cc22d081d6f3c607 (patch) | |
| tree | 9cd055d82381763f7ec3735d5c35dfce8317aa25 | |
| parent | 2e9b2daf8d50747fd80569a16ef11a13cc61f994 (diff) | |
navidrome: add startup/readiness/liveness probes
Prevents Traefik from routing traffic to navidrome before it has
finished its ~1m14s cold start (NFS cache warm-up + initial scan),
which was causing 501s and 'context canceled' errors right after
each cluster boot.
Amp-Thread-ID: https://ampcode.com/threads/T-019e109f-fa43-7467-bb0b-1a4a2d3d0b9e
Co-authored-by: Amp <amp@ampcode.com>
| -rw-r--r-- | f3s/navidrome/helm-chart/templates/deployment.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/f3s/navidrome/helm-chart/templates/deployment.yaml b/f3s/navidrome/helm-chart/templates/deployment.yaml index b140537..c7ddbf7 100644 --- a/f3s/navidrome/helm-chart/templates/deployment.yaml +++ b/f3s/navidrome/helm-chart/templates/deployment.yaml @@ -25,6 +25,29 @@ spec: value: "info" - name: ND_BASEURL value: "" + startupProbe: + httpGet: + path: /ping + port: 4533 + # Allow up to 5 min for cold start (NFS cache warm-up, scan, etc.) + initialDelaySeconds: 15 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 60 + readinessProbe: + httpGet: + path: /ping + port: 4533 + periodSeconds: 10 + timeoutSeconds: 3 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /ping + port: 4533 + periodSeconds: 30 + timeoutSeconds: 5 + failureThreshold: 5 volumeMounts: - name: navidrome-data mountPath: /data |
