supraj.dev
Kubernetes

Liveness vs readiness probes

Why would Kubernetes restart one stuck app copy but just stop sending traffic to another?

28 s loop7 sentencesSilent, read alongScene: Journey
Read the story, sentence by sentence 7 sentences

What you'll be able to say

  1. A readiness probe asks whether a container is ready for requests; if it fails, Services stop sending the Pod traffic, but nothing restarts.
  2. A liveness probe asks whether a container still works; after 3 failures in a row by default, the kubelet kills and restarts that container.
  3. The kubelet runs both probes, by default every 10 seconds, using an HTTP request, a TCP connection, a gRPC call, or a command.