DCA · Question #75
DCA Question #75: Real Exam Question with Answer & Explanation
The correct answer is B: No. The orchestrator's action after a liveness probe failure depends on the pod's restart policy; if set to 'Never', the container will not be restarted.
Question
One of several containers in a pod is marked as unhealthy after failing its livenessProbe many times. Is this the action taken by the orchestrator to fix the unhealthy container? Solution: The unhealthy container is restarted.
Options
- AYes
- BNo
Explanation
The orchestrator's action after a liveness probe failure depends on the pod's restart policy; if set to 'Never', the container will not be restarted.
Common mistakes.
- A. Restarting the unhealthy container is the default behavior for most workload types, but the
restartPolicy: Neverconfiguration would prevent such a restart from occurring.
Concept tested. Kubernetes liveness probe and restart policy
Reference. https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
Topics
Community Discussion
No community discussion yet for this question.