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
|
||||
}
|
||||
}
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue