Probes kubelet ਨੂੰ ਇੱਕ container ਦੀ ਸਿਹਤ ਦੀ ਜਾਂਚ ਕਰਨ ਅਤੇ ਨਤੀਜੇ 'ਤੇ ਕਾਰਵਾਈ ਕਰਨ ਦਿੰਦੇ ਹਨ। ਤਿੰਨ ਹਨ: liveness (ਕੀ ਇਹ ਜ਼ਿੰਦਾ ਹੈ, ਜਾਂ ਇਸਨੂੰ restart ਕਰਨਾ ਚਾਹੀਦਾ?), readiness (ਕੀ ਇਹ traffic ਲੈਣ ਲਈ ਤਿਆਰ ਹੈ?), ਅਤੇ startup (ਕੀ ਇਸਨੇ boot ਹੋਣਾ ਪੂਰਾ ਕਰ ਲਿਆ?)। ਹਰ ਇੱਕ ਇੱਕ ਵੱਖਰੇ ਸਵਾਲ ਦਾ ਜਵਾਬ ਦਿੰਦਾ ਹੈ।
ਤਿੰਨ probes ਇੱਕ ਨਜ਼ਰ ਵਿੱਚ
LIVENESS → "Is the app stuck/deadlocked?" FAIL → kubelet RESTARTS the container
READINESS → "Can it serve traffic right now?" FAIL → Pod removed from Service endpoints
(NOT restarted)
STARTUP → "Has the slow boot finished?" runs FIRST; while it runs, liveness &
readiness are held off
