kestra-io / helm-charts

Apache License 2.0
35 stars 26 forks source link

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

Open loicmathieu opened 1 year ago

loicmathieu commented 1 year ago

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