liveBook · Manning

Liveness check

As explained in Learn Docker in a Month of Lunches, Second Edition

A liveness probe is a Kubernetes container probe that determines whether a container should be restarted.

A liveness probe checks whether a running container is still healthy. Repeated failures cause Kubernetes to restart the container, helping an application recover instead of remaining stuck. section 15.3

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Defines HTTP checking, intervals, and restart effects without detailing failure thresholds or probe internals.
Examples
Uses an HTTP GET request to /healthz every 20 seconds in a numbers-api Deployment.
What it assumes
Assumes familiarity with Kubernetes containers, Pods, Deployments, and kubectl, while demonstrating the probe configuration directly.
What you can do after
Operate/configure Kubernetes Deployments with an HTTP liveness probe and verify Pod restarts using kubectl.
How it connects
Connects container probes with readiness probes, Pods, Deployments, Services, and high availability.

Also explained in

Compare how 7 books explain liveness check →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.