In Kubernetes, a container restart policy defines the conditions under which a container should be restarted. There are three valid restart policies for containers in Kubernetes:
Always: The container will always be restarted if it stops, regardless of the exit status.
OnFailure: The container will be restarted only if it exits with a non-zero exit status (indicating a failure).
Never: The container will not be restarted, regardless of the exit status.
The valid container restart policies in Kubernetes are Always, OnFailure, and Never. The correct answer, OnFailure, specifies that the container will be restarted only if it exits with a non-zero exit status, indicating a failure.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
shahy0
4 days, 21 hours ago