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