Which of the following groupings exclusively consists of valid Kubernetes container restart policies?

Study for the Kubernetes Certified Network Administrator Exam. Our test offers comprehensive flashcards, multiple-choice questions, and detailed explanations. Be confident for your exam!

Multiple Choice

Which of the following groupings exclusively consists of valid Kubernetes container restart policies?

Explanation:
Restart policy at the Pod level controls how the kubelet handles container termination. The valid values are Always, OnFailure, and Never. The grouping that includes all three of these options is the best choice because it lists exactly the set of allowed restart policies. Always means the container is restarted regardless of exit status; OnFailure means a restart happens only if the container exits with a non-zero status; Never means the container is not restarted at all after termination. In practice, Always is used for Pods managed by controllers like Deployments, while OnFailure or Never are used in special scenarios such as Jobs, but the question is about the valid values themselves, which are Always, OnFailure, and Never.

Restart policy at the Pod level controls how the kubelet handles container termination. The valid values are Always, OnFailure, and Never. The grouping that includes all three of these options is the best choice because it lists exactly the set of allowed restart policies. Always means the container is restarted regardless of exit status; OnFailure means a restart happens only if the container exits with a non-zero status; Never means the container is not restarted at all after termination. In practice, Always is used for Pods managed by controllers like Deployments, while OnFailure or Never are used in special scenarios such as Jobs, but the question is about the valid values themselves, which are Always, OnFailure, and Never.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy