Skip to main content
Solved

Kubernetes Question of the day July 18 2022


Geoff Burke
Forum|alt.badge.img+22

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

Best answer by JMeixner

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.

View original
Did this topic help you find an answer to your question?

3 comments

JMeixner
Forum|alt.badge.img+17
  • On the path to Greatness
  • 2650 comments
  • Answer
  • July 18, 2022

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.


Aly Idriss
Forum|alt.badge.img+1
  • Comes here often
  • 27 comments
  • July 18, 2022

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.


Iams3le
Forum|alt.badge.img+11
  • Veeam Legend
  • 1394 comments
  • July 18, 2022

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.