Hello All, Is there a way to run a script automatically when pod fails

Srinivas Sayyapureddy:
Hello All, Is there a way to run a script automatically when pod fails.

Mohamed Ayman:
check:
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

L B:
i think PreStop hook is more relevant https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks