Skip to content

Commit

Permalink
fix: keycloak probes failure results in pod crash
Browse files Browse the repository at this point in the history
Signed-off-by: iam-veeramalla <[email protected]>
  • Loading branch information
iam-veeramalla committed Sep 26, 2023
1 parent aa6ab4e commit 1771c10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions controllers/argocd/keycloak.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -292,7 +292,7 @@ func getKeycloakContainer(cr *argoproj.ArgoCD) corev1.Container {
},
},
},
InitialDelaySeconds: 60,
InitialDelaySeconds: 120,
},
Name: "${APPLICATION_NAME}",
Ports: []corev1.ContainerPort{
Expand All @@ -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{
Expand Down

0 comments on commit 1771c10

Please sign in to comment.