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 <noreply@anthropic.com>
Signed-off-by: mattia-eleuteri <mattia@hidora.io>
(cherry picked from commit d18ed79382)
This commit is contained in:
mattia-eleuteri 2026-03-06 11:26:52 +01:00 committed by github-actions[bot]
parent 5356a5260a
commit 352be923ae

View file

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