The Spring Boot project includes Spring Cloud Kubernetes which wraps K8's secrets, config and service discovery.
However, it doesn't add much for k8 liveliness and readiness probes.
This exposes two additional actuators, LivelinessActuator
and ReadinessActuator
.
This returns an error code if the Spring health endpoints fail, else returns ok.
This checks Tomcat metrics and will fail if the number of currently busy threads is 70% of the Tomcat threadpool.
Also in this package:
- SlowController:
http://localhost:8080/
<-- takes 1 second to return CustomHealthActuator
<-- want to see your liveliness endpoint fail? Make this health check endpoint fail.bin/
<-- contains scripts to DDoS your machine!