Which Kubernetes liveness probe result causes a container to be restarted?
- A Readiness probe failure
- B Liveness probe failure (correct answer)
- C Startup probe failure within initialDelaySeconds
- D Exec probe returning exit code 0
Shortcut: Liveness probe failure causes Kubernetes to restart the container (per the pod's restartPolicy). Readiness probe failure removes the pod from Service endpoints without restarting it.