allow authentik slower first startup
Homelab Main / validate (push) Successful in 17s Details
Homelab Main / running-update (push) Successful in 8s Details
Homelab Main / debian-ops (push) Successful in 1m13s Details

This commit is contained in:
juvenal.diaz 2026-09-28 18:18:05 -06:00
parent 30e5d173af
commit b219f92298
1 changed files with 14 additions and 2 deletions

View File

@ -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