Discussion about this post

User's avatar
Giuseppe Santoro 🚒's avatar

A couple of things missing from this description that might help a reader.

The readiness probe is supposed to account for an application not being ready to serve a request when it is launched.

Think of an application loading data from a disk or just taking a couple of seconds to initialise.

That's why it has a parameter `initialDelaySeconds` that only check for readiness after a certain number of seconds.

If a pod is not ready, it won't receive traffic but the controller won't do anything else about it.

There are other probes like the Liveness probe. This probe checks instead if the application is running and healthy and if not it restarts the pod.

Expand full comment
3 more comments...

No posts