Solved

Kubernetes Question of the day July 18 2022


Userlevel 7
Badge +22

What do Liveness probes do and how do they differ from readiness and startup probes?

icon

Best answer by JMeixner 18 July 2022, 13:47

View original

3 comments

Userlevel 7
Badge +17

Liveness probes check if an application running on a container or pod with several container is alive and is in the desired/functional state. A failing liveness probe could for example trigger an restart of the pod or a single container.

Readyness probes check for the readyness of a container or pod to start receiving data.

Startup probes are defined for the startup process of a container application. It disables liveness and readyness probes until it “sees” that the application is started completely.

Userlevel 4
Badge +1

Liveness probes is used to check if the container is available and alive.

Readiness probes is used to check if the application is ready to use and serve the traffic.

Userlevel 7
Badge +9

Here is what liveness probe means: It is used to check if the container is available and alive. This is different from both the startup and readiness prob as shown below.

  • Startup Probes: Used to check if the application inside the Container has started.
  • Readiness Probes: Used to check if the application is ready to use and serve the traffic.

Comment