Beginner Kubernetes
Q34 / 100

What does the "restartPolicy" field in a Pod spec control?

Correct! Well done.

Incorrect.

The correct answer is B) Whether containers within the Pod should be restarted by the kubelet when they exit (Always, OnFailure, or Never)

B

Correct Answer

Whether containers within the Pod should be restarted by the kubelet when they exit (Always, OnFailure, or Never)

Explanation

restartPolicy determines the kubelet's behavior when a container in the Pod terminates — "Always" (default for Deployments), "OnFailure", or "Never" (common for Jobs).

Progress
34/100