Does Spring Boot's 2.3.x new Kubernetes Readiness probe consider the state of external systems out of the box? if not, how can we incluide it?

5/16/2020

According to the documentation:

An application is considered ready as soon as application and command-line runners have been called, see Spring Boot application lifecycle and related Application Events.

So it doesn't seem to be considering external systems suchs a database. Is this correct?

How could we make the ReadinessStateHealthIndicator evaluate the state of such systems so the pod is taken away from the k8s service load balancer when they are failing of are not available?

-- codependent
kubernetes
spring
spring-boot

0 Answers