Letting OpenShift manage unhealthy services

In the examples so far, we have seen how to detect different health checks scenarios. One of the greatest advantages of running a Kubernetes native environment is that you can react automatically to changes in an application's status. More specifically, it is possible to probe the following checks through the application's deployment descriptors:

  • Liveness probe: Kubernetes provides a liveness probe to determine whether the container that it's been configured in is still running. Should the liveness probe fail, the kubelet agent kills and restarts the container.
  • Readiness probe: Kubernetes provides the readiness probe to signal that an application is temporarily unable to serve traffic, for example, ...

Get Hands-On Cloud-Native Applications with Java and Quarkus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.