CONTAINERS / A CONCEPT NOTE

Health Checks

alive isn't ready

~65 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

Liveness probes check if a container is running (if it fails, the system restarts it). Readiness probes check if the application is fully booted and ready to receive real requests.

02 / FOLLOW THE MECHANISM

How probes monitor app status

  1. Boot phase

    container process starts up. Liveness passes, but readiness fails while loading cache.

  2. Ready state

    readiness endpoint returns 200 OK. Router begins routing traffic to the container.

  3. Deadlock

    app crashes internally. Liveness probe gets a 500 error code.

  4. Restart

    orchestrator kills the stuck container and launches a clean replacement.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

inspect active health checks configuration on pod

kubectl describe pod POD_NAME | grep -i probe

Explore command anatomy in the CLI lab