Skip to content

Commit

Permalink
Align health checks used by Keycloak as the management port is not av…
Browse files Browse the repository at this point in the history
…ailable anymore (#762)

Closes #761

Signed-off-by: Alexander Schwartz <[email protected]>
  • Loading branch information
ahus1 authored Apr 4, 2024
1 parent c94ff00 commit d417d0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ Prerequisite:
Verifies the health of the Keycloak application through its load balancer and both primary and backup sites. This ensures that Keycloak is accessible and that the load balancing mechanism is functioning correctly across different geographical or network locations.

This command returns the health status of the Keycloak application's connection to its configured database, thus confirming the reliability of db connections.
This is only available on the management port, and not available from the external URL.
In a Kubernetes setup, the sub-status `health/ready` is checked periodically to make the Pod as ready.

[source,bash]
----
curl -s https://keycloak-load-balancer-url/health
curl -s https://keycloak:managementport/health
----

This command verifies the `lb-check` endpoint of the load balancer and ensures the Keycloak application cluster is up and running.
Expand Down
3 changes: 1 addition & 2 deletions provision/rosa-cross-dc/cross-site-health-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ health_check() {
echo
}

echo "Verify the Keycloak App Health and Load Balancer health check"
health_check $keycloak_lb_url/health
echo "Verify the Keycloak Load Balancer health check"
health_check $keycloak_lb_url/lb-check

echo "Verify the Load Balancer health check on Site A and Site B"
Expand Down

0 comments on commit d417d0f

Please sign in to comment.