allow authentik slower first startup
This commit is contained in:
parent
30e5d173af
commit
b219f92298
|
|
@ -2181,6 +2181,12 @@ resource "helm_release" "authentik" {
|
||||||
memory = var.authentik.server_memory_limit
|
memory = var.authentik.server_memory_limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
startupProbe = {
|
||||||
|
failureThreshold = 180
|
||||||
|
initialDelaySeconds = 10
|
||||||
|
periodSeconds = 10
|
||||||
|
timeoutSeconds = 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
worker = {
|
worker = {
|
||||||
replicas = 1
|
replicas = 1
|
||||||
|
|
@ -2195,6 +2201,12 @@ resource "helm_release" "authentik" {
|
||||||
memory = var.authentik.worker_memory_limit
|
memory = var.authentik.worker_memory_limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
startupProbe = {
|
||||||
|
failureThreshold = 180
|
||||||
|
initialDelaySeconds = 30
|
||||||
|
periodSeconds = 10
|
||||||
|
timeoutSeconds = 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enabled = true
|
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
|
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
|
dump_authentik_debug
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
dump_authentik_debug
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue