fix(authentik): widen server probe timeouts (3s->15s) — slow-but-200 health checks under DB contention triggered a liveness kill loop, dropping the pod from Service endpoints and breaking OAuth provisioning
This commit is contained in:
@@ -127,6 +127,22 @@ server:
|
|||||||
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"
|
||||||
|
# The /-/health/{live,ready}/ endpoints do a DB round-trip; under transient
|
||||||
|
# CNPG contention they respond in 5-6s while still returning 200. The chart's
|
||||||
|
# default 3s liveness timeout then flags a working backend as dead and kubelet
|
||||||
|
# kills it in a restart loop — the pod never stays Ready, gets dropped from the
|
||||||
|
# authentik-server Service endpoints, and the OAuth-provisioning PostSync hook
|
||||||
|
# fails with "Host is unreachable". Widen the timeouts so slow-but-healthy
|
||||||
|
# checks aren't treated as failures. (Only these fields are overridden; the
|
||||||
|
# chart deep-merges the rest of each probe, incl. the httpGet path.)
|
||||||
|
livenessProbe:
|
||||||
|
timeoutSeconds: 15
|
||||||
|
failureThreshold: 6
|
||||||
|
readinessProbe:
|
||||||
|
timeoutSeconds: 15
|
||||||
|
failureThreshold: 6
|
||||||
|
startupProbe:
|
||||||
|
timeoutSeconds: 15
|
||||||
# Every OIDC login (Grafana, Argo CD, MinIO, Forgejo) depends on this server —
|
# Every OIDC login (Grafana, Argo CD, MinIO, Forgejo) depends on this server —
|
||||||
# its request latency/error rate explains SSO-driven slowness on those services.
|
# its request latency/error rate explains SSO-driven slowness on those services.
|
||||||
metrics:
|
metrics:
|
||||||
|
|||||||
Reference in New Issue
Block a user