From 352be923ae77dac68919feb208ecb444c687f5ad Mon Sep 17 00:00:00 2001 From: mattia-eleuteri Date: Fri, 6 Mar 2026 11:26:52 +0100 Subject: [PATCH] fix(keycloak): add startupProbe, remove initialDelaySeconds Use a startupProbe to defer liveness/readiness checks until Keycloak has fully started, instead of relying on initialDelaySeconds. This is more robust for applications with variable startup times. Co-Authored-By: Claude Opus 4.6 Signed-off-by: mattia-eleuteri (cherry picked from commit d18ed7938276c1e2d162b41488ad68b5fb62a411) --- packages/system/keycloak/templates/sts.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/system/keycloak/templates/sts.yaml b/packages/system/keycloak/templates/sts.yaml index 08a42fae..e2bba431 100644 --- a/packages/system/keycloak/templates/sts.yaml +++ b/packages/system/keycloak/templates/sts.yaml @@ -135,11 +135,16 @@ spec: - name: management containerPort: 9000 protocol: TCP + startupProbe: + httpGet: + path: /health/ready + port: management + failureThreshold: 30 + periodSeconds: 10 livenessProbe: httpGet: path: /health/live port: management - initialDelaySeconds: 120 periodSeconds: 15 timeoutSeconds: 5 failureThreshold: 5 @@ -147,7 +152,6 @@ spec: httpGet: path: /health/ready port: management - initialDelaySeconds: 60 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3