fix: authentik probe timeouts blocking DB migration on fresh cluster
Liveness probe was firing after 60s with failureThreshold:6, killing the server container before it finished applying 200+ DB migrations. The startup probe (20min timeout) never got a chance to complete. Root cause: Authentik health checks fail during long DB bootstrap. Both liveness and startup probes run in parallel. Liveness killed the pod at 60s; migrations need 2-3min minimum. Solution: Add initialDelaySeconds:300 to liveness/readiness probes so they don't fire until 5min have passed (migrations definitely complete). Worker gets same treatment since it depends on server's DB bootstrap.
This commit is contained in:
@@ -153,9 +153,11 @@ server:
|
|||||||
# checks aren't treated as failures. (Only these fields are overridden; the
|
# checks aren't treated as failures. (Only these fields are overridden; the
|
||||||
# chart deep-merges the rest of each probe, incl. the httpGet path.)
|
# chart deep-merges the rest of each probe, incl. the httpGet path.)
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
|
initialDelaySeconds: 300 # skip probe until 5min passed (migrations finish)
|
||||||
timeoutSeconds: 15
|
timeoutSeconds: 15
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
|
initialDelaySeconds: 300 # skip probe until migrations complete
|
||||||
timeoutSeconds: 15
|
timeoutSeconds: 15
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
startupProbe:
|
startupProbe:
|
||||||
@@ -215,6 +217,13 @@ worker:
|
|||||||
podAnnotations:
|
podAnnotations:
|
||||||
configmap.reloader.stakater.com/reload: "homelab-ca"
|
configmap.reloader.stakater.com/reload: "homelab-ca"
|
||||||
homelab.io/restart-at: "2026-06-21T13-40"
|
homelab.io/restart-at: "2026-06-21T13-40"
|
||||||
|
livenessProbe:
|
||||||
|
initialDelaySeconds: 300 # skip probe until 5min passed (migrations finish)
|
||||||
|
readinessProbe:
|
||||||
|
initialDelaySeconds: 300 # skip probe until migrations complete
|
||||||
|
startupProbe:
|
||||||
|
initialDelaySeconds: 30 # let server finish DB work first
|
||||||
|
failureThreshold: 120
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
|
|||||||
Reference in New Issue
Block a user