Readiness probes

Readiness probes are used in Kubernetes to determine whether a Pod container is ready to accept traffic incoming from a Kubernetes ServicePods that are not ready (a Pod is ready only if all of its containers are considered ready) will be removed from the Service Endpoints list until they become ready again. In other words, it is a signal for notifying that a given Pod can be used for requests incoming to the Service.

There are a couple of established best practices for readiness probes that you should consider:

  • Use this probe whenever your containers may not be ready to properly serve traffic as soon as the container is started.
  • Ensure that you check the cache warm-up or database migration status during readiness probe ...

Get Hands-On Kubernetes on Windows 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.