From b219f922982fcd5da1276f3e32fc8424548851ca Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Mon, 28 Sep 2026 18:18:05 -0600 Subject: [PATCH] allow authentik slower first startup --- bootstrap/platform/main.tf | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/bootstrap/platform/main.tf b/bootstrap/platform/main.tf index 7e0edda..b240e83 100644 --- a/bootstrap/platform/main.tf +++ b/bootstrap/platform/main.tf @@ -2181,6 +2181,12 @@ resource "helm_release" "authentik" { memory = var.authentik.server_memory_limit } } + startupProbe = { + failureThreshold = 180 + initialDelaySeconds = 10 + periodSeconds = 10 + timeoutSeconds = 10 + } } worker = { replicas = 1 @@ -2195,6 +2201,12 @@ resource "helm_release" "authentik" { memory = var.authentik.worker_memory_limit } } + startupProbe = { + failureThreshold = 180 + initialDelaySeconds = 30 + periodSeconds = 10 + timeoutSeconds = 10 + } } postgresql = { enabled = true @@ -2254,12 +2266,12 @@ dump_authentik_debug() { kubectl --kubeconfig "$kubeconfig" -n "$namespace" get events --sort-by=.lastTimestamp 2>/dev/null | tail -80 >&2 || true } -if ! kubectl --kubeconfig "$kubeconfig" -n "$namespace" rollout status deployment/authentik-server --timeout=600s; then +if ! kubectl --kubeconfig "$kubeconfig" -n "$namespace" rollout status deployment/authentik-server --timeout=1800s; then dump_authentik_debug exit 1 fi -if ! kubectl --kubeconfig "$kubeconfig" -n "$namespace" rollout status deployment/authentik-worker --timeout=600s; then +if ! kubectl --kubeconfig "$kubeconfig" -n "$namespace" rollout status deployment/authentik-worker --timeout=1800s; then dump_authentik_debug exit 1 fi