You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-project
Brian Clozel fd0b2f6695 Add Kubernetes Liveness and Readiness Probes support
Prior to this commit and as of Spring Boot 2.2.0, we would advise
developers to use the Actuator health groups to define custom "liveness"
and "readiness" groups and configure them with subsets of existing
health indicators.

This commit addresses several limitations with that approach.

First, `LivenessState` and `ReadinessState` are promoted to first class
concepts in Spring Boot applications. These states should not only based
on periodic health checks. Applications should be able to track changes
(and adapt their behavior) or update states (when an error happens).

The `ApplicationStateProvider` can be injected and used by applications
components to get the current application state. Components can also
track specific `ApplicationEvent` to be notified of changes, like
`ReadinessStateChangedEvent` and `LivenessStateChangedEvent`.
Components can also publish such events with an
`ApplicationEventPublisher`. Spring Boot will track startup event and
application context state to update the liveness and readiness state of
the application. This infrastructure is available in the
main spring-boot module.

If Spring Boot Actuator is on the classpath, additional
`HealthIndicator` will be contributed to the application:
`"LivenessProveHealthIndicator"` and `"ReadinessProbeHealthIndicator"`.
Also, "liveness" and "readiness" Health groups will be defined if
they're not configured already.

Closes gh-19593
5 years ago
..
spring-boot Add Kubernetes Liveness and Readiness Probes support 5 years ago
spring-boot-actuator Add Kubernetes Liveness and Readiness Probes support 5 years ago
spring-boot-actuator-autoconfigure Add Kubernetes Liveness and Readiness Probes support 5 years ago
spring-boot-autoconfigure Add Kubernetes Liveness and Readiness Probes support 5 years ago
spring-boot-cli
spring-boot-dependencies Upgrade to Couchbase SDK v3 5 years ago
spring-boot-devtools Merge branch '2.2.x' 5 years ago
spring-boot-docs Add Kubernetes Liveness and Readiness Probes support 5 years ago
spring-boot-parent
spring-boot-properties-migrator
spring-boot-starters
spring-boot-test
spring-boot-test-autoconfigure
spring-boot-tools Publish Maven plugin API 5 years ago