According to the documentation of spring-boot-actuator, we can define "management.endpoint.health.probes.add-additional-paths=true" to enable liveness and readiness. However, the configuration metadata for this is missing.
If your Actuator endpoints are deployed on a separate management context, the endpoints do not use the same web infrastructure (port, connection pools, framework components) as the main application. In this case, a probe check could be successful even if the main application does not work properly (for example, it cannot accept new connections). For this reason, is it a good idea to make the liveness and readiness health groups available on the main server port. This can be done by setting the following property:
java management.endpoint.health.probes.add-additional-paths=truehttps://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#actuator.endpoints.kubernetes-probes
Comment From: luozhenyu
Thanks for the PR. I've left a comment for your consideration.
I believe this change was introduced in
2.6.xso the current base branch doesn't look right.
@snicoll You are right. I changed the base branch to2.6.x.
Comment From: snicoll
@luozhenyu thank you for the quick follow-up and for making your first contribution to Spring Boot.