A running container is only a process. It may still be loading data, waiting for a required connection, or unable to answer requests. Health checks become useful when each one asks a distinct operational question. Kubernetes defines startup, readiness, and liveness probes for these different cases.
Readiness controls traffic
Readiness asks whether this instance can serve a request now. If the check fails, Kubernetes stops routing ordinary Service traffic to that Pod. A readiness endpoint can reflect a dependency that is strictly required for useful work, but it should avoid expensive calls that make the probe itself a load generator. If a shared database fails, marking every instance unready may be correct for some products and harmful for others; decide based on what the application can still do.
Liveness controls restarts
Liveness asks whether restarting this container is likely to help. A transient dependency failure is usually a poor reason to restart every application instance. Kubernetes warns that an incorrect liveness probe can cause cascading failures under load. Keep the check cheap and tied to the process’s ability to make progress. Set thresholds so brief slowdowns do not become a restart loop.
Startup buys initialization time
If a service needs time to load models, warm caches, or run initialization, a startup probe can prevent liveness and readiness from firing too early. Once it succeeds, the other probes take over. This is more explicit than making every liveness timeout so generous that a genuinely stuck process takes a long time to recover.
Test probe behavior by delaying startup, breaking a required dependency, and saturating the service. Observe whether traffic moves away and whether restarts improve recovery. The right endpoint is the one that produces the operational response the team intended.
Sources
Reference: Kubernetes container probes and probe configuration.



