A transit agency runs long-lived API Pods under a Deployment and needs failed containers to restart automatically. Which restartPolicy is correct for those Deployment-managed Pods?
Select an answer to reveal the explanation.
Short Explanation
Deployments are built for always-on services, so their Pods use restartPolicy Always—kubelet keeps bringing the container back. Never would leave a crash as a permanent outage for that replica.
Full Explanation
Pods created for Deployments (and ReplicaSets) use restartPolicy Always so kubelet restarts containers that exit or fail liveness checks. OnFailure and Never apply to job-like workloads, not ordinary Deployment replicas. There is no Manual restartPolicy in Kubernetes.