CK.I · CKAD practice question
You want a Pod to run a setup script only once when created, even if the main application container restarts 10 times later. Which container section should hold the setup script?
Check answer and explanation
Correct answer: spec.initContainers
Explanation
initContainers run to completion before any app container starts and are not re-executed every time an app container restarts.
Common trap
initContainers run to completion before any app container starts and are not re-executed every time an app container restarts.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.