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.
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