helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Kubernetes probes should use /health/ready and /health/live

Open loicmathieu opened this issue 2 years ago • 0 comments

Feature description

Both Kubernetes readiness and liveness probes use the /health endpoints.

It is a good practice on a Kubernetes environment to distinguish between the liveness probe (which define if the application if alive and restart it if not) and the readiness probe (which define if an application is ready to accept requests and put it in the endpoints list of a service).

So we may change the liveness probe tu use /health/live and the readiness probe to use /health/ready.

See https://micronaut-projects.github.io/micronaut-docs-mn2/2.1.4/guide/#healthEndpoint

loicmathieu avatar Sep 07 '23 14:09 loicmathieu