Welcome to the Linux Foundation Forum!

Confusion in Quiz 3.1

Options

This looks contradicting with docs or I have understood this incorrectly.

https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes

Can someone please help me to solve this confusion? Thanks.

Comments

  • chrispokorni
    chrispokorni Posts: 2,165
    Options

    Hi @pubudu_sitinamaluwa,

    The question, the answer, and the note from the documentation are correct, but once you put them side-by-side things become a bit confusing.
    The missing piece of information is that although the readiness probe runs on the container during its entire lifecycle (per the note above), kubelet checks the probe until it passes, and stops checking after that. However, if the probe failure threshold is reached, then kubelet restarts the container and the readiness probing starts all over again.

    Regards,
    -Chris

  • serewicz
    serewicz Posts: 1,000
    Options

    We will update the question to better reflect how the probes work.

    Thanks for bringing it up.

  • fcioanca
    fcioanca Posts: 1,904
    Options

    The question has been updated. Thank you.

  • Thank you all. It's more clear now. :)

Categories

Upcoming Training