Study. uk . com
  1. Home
  2. All questions
  3. Question 437

CKA study material · question 437 of 1000

A Pod with restartPolicy Never has an init container that exits with an error. What is the outcome?

  1. The Pod stays Pending indefinitely
  2. The app containers start anyway
  3. The init container is retried once
  4. The whole Pod is treated as failed
Show the answer

Answer: D. The whole Pod is treated as failed

With restartPolicy Never, an init container failure makes Kubernetes treat the whole Pod as failed.

Source: Init Containers (Kubernetes) — Understanding init containers

Challenge yourself on this topic → Study as cards