Question about Readiness Probe Lab Solution in the CKAD course

Hello everyone, please in the lab solution for the Readiness and Liveness Probe, in question 9 we ran a script to crash simple-webapp-2. Immediately after crashing the simple-webapp-2 the simple-webapp-2 pod was up and running. My question is, since the simple-webapp-2 has only Readiness Probe (which only checks for pod readiness and it doesn’t restart pods), how did the simple-webapp-2 get restarted after crashing? Thanks in advance for any help.

Hi @Tech1

You need to look at the Pods restartPolicy if it’s set to Always, then the Pod will try to restart the container when it crashes.

Hello @Santosh_KodeKloud, okay, thanks a lot.