Bird
0
0

You defined an init container but your main app container never starts. What is the most likely cause?

medium📝 Troubleshoot Q14 of 15
Kubernetes - Pods
You defined an init container but your main app container never starts. What is the most likely cause?
AThe Pod spec is missing the 'containers' section
BThe app container image is missing
CThe init container failed or is stuck and did not complete successfully
DThe init container is running after the app container
Step-by-Step Solution
Solution:
  1. Step 1: Recall init container lifecycle

    Init containers must complete successfully before the app container starts.
  2. Step 2: Identify why app container never starts

    If the init container fails or hangs, the app container will not start, causing the Pod to stall.
  3. Final Answer:

    The init container failed or is stuck and did not complete successfully -> Option C
  4. Quick Check:

    Init container failure blocks app start [OK]
Quick Trick: Check init container status if app never starts [OK]
Common Mistakes:
  • Ignoring init container failure status
  • Assuming app container image issues cause this
  • Thinking init containers run after app containers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes