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

Make a Health Check Configurable #48

Open
chloesoe opened this issue Aug 24, 2021 · 3 comments
Open

Make a Health Check Configurable #48

chloesoe opened this issue Aug 24, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@chloesoe
Copy link
Contributor

Context

As an operator of Keycloak I want to have an endpoint, which I could query with our monitoring to see, whether keycloak is up and running.
Integrate a possibility for a health check.
E.g. something like discussed in https://issues.redhat.com/browse/KEYCLOAK-1578?_sscc=t and implemented in https://github.com/thomasdarimont/keycloak-health-checks.

Alternatives

For monitoring we can use a simple http check, to see whether keycloak is up and running.

@chloesoe chloesoe added the enhancement New feature or request label Aug 24, 2021
@ccremer
Copy link
Contributor

ccremer commented Sep 16, 2021

The Helm chart configures a liveness check to /auth and a readiness check to /auth/realms/master. Is checking for status code 200-399 not enough for your use case?

@megian
Copy link
Contributor

megian commented Nov 9, 2022

Recently the livenessProbe (/auth)/health/live, readinessProbe (/auth)/health/ready, startupProbe (/auth)/health have been changed in #177. So we use the foreseen endpoints of Keycloak Quarkus for that purpose:

  • /health
  • /health/live
  • /health/ready
  • /metrics

@chloesoe Any objections to close this as it currently uses the official way to monitor Keycloak?

@megian
Copy link
Contributor

megian commented Nov 9, 2022

@chloesoe As an addition you can always override the path via the helm variables:

parameters:
  keycloak:
    helm_values:
      livenessProbe: |
        httpGet:
          path: '/health/live'
          port: https
          scheme: HTTPS
        initialDelaySeconds: 0
        timeoutSeconds: 5
      readinessProbe: |
        httpGet:
          path: '/health/ready'
          port: https
          scheme: HTTPS
        initialDelaySeconds: 10
        timeoutSeconds: 1
      startupProbe: |
        httpGet:
          path: '/health'
          port: https
          scheme: HTTPS
        initialDelaySeconds: 15
        timeoutSeconds: 1
        failureThreshold: 60
        periodSeconds: 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants