From cd3abede11b2e202c6ee9a0ad43b710ecfba943b Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Wed, 22 Jul 2026 10:53:16 -0700 Subject: [PATCH] fix(homarr): configure proper liveness/readiness probes App takes ~30-45s to fully initialize: - DB migrations - Redis startup - Icon repository cache fetch (27k+ icons) - WebSocket server start - Analytics cron initialization Probes need: - initialDelaySeconds: 45-60s (not 10s default) - timeoutSeconds: 5s (not 1s default) - periodSeconds: 15-30s for stable health checks Previous issue: 1s timeout + 10s initialDelay killed healthy container before app finished initialization. --- k8s/applications/homarr/homarr-values.yaml | 29 ++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/k8s/applications/homarr/homarr-values.yaml b/k8s/applications/homarr/homarr-values.yaml index 25575ad..680e4c6 100644 --- a/k8s/applications/homarr/homarr-values.yaml +++ b/k8s/applications/homarr/homarr-values.yaml @@ -1,5 +1,5 @@ -# Homarr landing page - minimal config to get it running -# SSO will be added after basic deployment works +# Homarr landing page - minimal working config +# App takes ~30 seconds to fully initialize (DB migrations, Redis, icon cache) image: repository: ghcr.io/homarr-labs/homarr @@ -8,6 +8,31 @@ image: replicaCount: 1 +# Override default probes - chart defaults are too aggressive for startup time +probes: + liveness: + enabled: true + custom: true + spec: + httpGet: + path: /api/health/live + port: 7575 + initialDelaySeconds: 60 # App needs time for migrations + icon fetch + periodSeconds: 30 + timeoutSeconds: 5 + failureThreshold: 3 + readiness: + enabled: true + custom: true + spec: + httpGet: + path: /api/health/ready + port: 7575 + initialDelaySeconds: 45 # Wait for WebSocket + analytics cron + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 3 + tolerations: - key: node-role.kubernetes.io/control-plane operator: Exists