This Fuse booster demonstrates how to use the Kubernetes health check to determine whether a container is alive and ready to serve the traffic for the HTTP endpoints of an application.
To demonstrate this behavior, this booster application configures a /health
HTTP endpoint that Kubernetes uses to issue HTTP requests. If the container is alive then the Health HTTP endpoint returns HTTP code 200 as a response and Kubernetes takes no further action. If the HTTP endpoint stops returning a 200 response, Kubernetes restarts the container pod.
This page invokes the Greetings Service every five seconds.
To demonstrate the behavior of the health check, click the Stop Camel Context
button.