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

CKA study material · question 436 of 1000

A Pod's restartPolicy is Always. How are its init containers treated on failure?

  1. As if their policy were Always
  2. They are skipped after the first failure
  3. As if their policy were OnFailure
  4. As if their policy were Never
Show the answer

Answer: C. As if their policy were OnFailure

When the Pod policy is Always, init containers behave as OnFailure, so a successful one is not restarted.

Source: Init Containers (Kubernetes) — Detailed behavior

Challenge yourself on this topic → Study as cards