What is the difference between a liveness and a readiness probe?
A liveness probe tells Kubernetes whether to restart a container that is stuck. A readiness probe tells it whether the container should receive traffic right now. A container can be alive but not ready, for example while warming a cache, and should be taken out of rotation without being killed.
Answered in
Ten Kubernetes Design Patterns: Probes, Sidecars, Init Containers and OperatorsFoundational, structural, behavioural and higher-level Kubernetes patterns, each with the problem it solves and a manifest snippet you can adapt.
Read the full analysisOther questions this article answers
More development best practices questions
- How many repositories can be scanned at once?
- Is GitHub AI Scan generally available?
- Can a developer continue any Copilot session on a phone?
- Does GitHub Mobile replace the desktop development environment?
- What should teams do when a Copilot model is retired?
- Does changing the model guarantee identical output?
- What's the actual security flaw people mean when they say JWT is risky?
- How does PASETO structurally prevent the 'alg:none' style of attack?
Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the Development Best Practices beat.