/actuator/health
endpoint. However, which endpoint you use depends on the Spring Boot version.200
response status instead of using the Spring Boot Actuator's /actuator/health
endpoint. This is because /actuator/health
by default may fail if an external dependency fails.200
httpGet
, you can also configure different type of probes such as exec
to execute a command to perform a non-HTTP check, or use tcpSocket
to simply check if a port is listening. See Kubernetes Configure Liveness, Readiness, and Startup Probes documentation for more details.initialDelaySeconds
configuration. If your application starts slowly (e.g., 1 minute to start), and the livenessProbe
starts the check early (e.g., 10 seconds), then the livenessProbe
might never succeed - causing the application to always getting restarted.livenessProbe
, always consider the initial delay needed for your application.readinessProbe
. Even if you don't use Spring Boot Actuator, you can point the probe to /
or some endpoint that indicates the traffic is ready serve.