Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readiness and Liveness probe for the operator deployment of Keycloak.X #9552

Closed
Tracked by #9169
andreaTP opened this issue Jan 13, 2022 · 1 comment · Fixed by #9628
Closed
Tracked by #9169

Readiness and Liveness probe for the operator deployment of Keycloak.X #9552

andreaTP opened this issue Jan 13, 2022 · 1 comment · Fixed by #9628
Assignees
Labels
area/operator Keycloak.X Operator keycloak.x kind/enhancement Categorizes a PR related to an enhancement
Milestone

Comments

@andreaTP
Copy link
Contributor

Description

The new Keycloak.X expose some basic health endpoints, we should investigate and model on top of those proper default readiness and liveness probes for the Keycloak deployment.

Discussion

No response

Motivation

No response

Details

No response

@andreaTP andreaTP added kind/enhancement Categorizes a PR related to an enhancement keycloak.x area/operator Keycloak.X Operator labels Jan 13, 2022
@andreaTP andreaTP self-assigned this Jan 13, 2022
@andreaTP
Copy link
Contributor Author

Turns out that ready and live probe are already implemented in the Quarkus distribution, specifically here:

public class KeycloakReadyHealthCheck extends DataSourceHealthCheck {

Those endpoints gets activated by passing --metrics-enabled=true as an option to kc.sh.

The probes will look like following:

curl --head --fail --silent http://127.0.0.1:8080/health/live
curl --head --fail --silent http://127.0.0.1:8080/health/ready

@stianst stianst added this to the 17.0.0 milestone Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/operator Keycloak.X Operator keycloak.x kind/enhancement Categorizes a PR related to an enhancement
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants