Bird
0
0

Why does this Pod fail to start?

medium📝 Troubleshoot Q7 of 15
Kubernetes - Pods
Why does this Pod fail to start?
initContainers:
- name: init
  image: busybox
  command: ['sh', '-c', 'exit 1']
AThe Pod spec is missing main containers
BThe image 'busybox' is not allowed for init containers
CThe command syntax is invalid
DThe init container exits with failure, blocking Pod start
Step-by-Step Solution
Solution:
  1. Step 1: Analyze init container command

    The command 'exit 1' causes the init container to fail immediately.
  2. Step 2: Understand Pod startup rules

    Pod startup is blocked until init containers succeed; failure prevents Pod from running.
  3. Final Answer:

    The init container exits with failure, blocking Pod start -> Option D
  4. Quick Check:

    Init container failure blocks Pod start [OK]
Quick Trick: Init container exit code must be zero to proceed [OK]
Common Mistakes:
  • Assuming busybox image is invalid
  • Thinking command syntax is wrong
  • Believing Pod can start without main containers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes