From 1771c1036dae3b4265343fd3c2ea1f6708de4251 Mon Sep 17 00:00:00 2001 From: iam-veeramalla Date: Tue, 26 Sep 2023 09:30:43 +0530 Subject: [PATCH] fix: keycloak probes failure results in pod crash Signed-off-by: iam-veeramalla --- controllers/argocd/keycloak.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controllers/argocd/keycloak.go b/controllers/argocd/keycloak.go index 0d91cd9c4..f4a025488 100644 --- a/controllers/argocd/keycloak.go +++ b/controllers/argocd/keycloak.go @@ -282,7 +282,7 @@ func getKeycloakContainer(cr *argoproj.ArgoCD) corev1.Container { Image: getKeycloakContainerImage(cr), ImagePullPolicy: "Always", LivenessProbe: &corev1.Probe{ - TimeoutSeconds: 120, + TimeoutSeconds: 240, ProbeHandler: corev1.ProbeHandler{ Exec: &corev1.ExecAction{ Command: []string{ @@ -292,7 +292,7 @@ func getKeycloakContainer(cr *argoproj.ArgoCD) corev1.Container { }, }, }, - InitialDelaySeconds: 60, + InitialDelaySeconds: 120, }, Name: "${APPLICATION_NAME}", Ports: []corev1.ContainerPort{ @@ -302,7 +302,8 @@ func getKeycloakContainer(cr *argoproj.ArgoCD) corev1.Container { {ContainerPort: 8888, Name: "ping", Protocol: "TCP"}, }, ReadinessProbe: &corev1.Probe{ - TimeoutSeconds: 120, + TimeoutSeconds: 240, + InitialDelaySeconds: 120, ProbeHandler: corev1.ProbeHandler{ Exec: &corev1.ExecAction{ Command: []string{