Bird
0
0

You deployed a Pod with two containers, but only one container is running. What is the most likely cause?

medium📝 Troubleshoot Q14 of 15
Kubernetes - Pods
You deployed a Pod with two containers, but only one container is running. What is the most likely cause?
AThe Pod spec must list containers under metadata, not spec
BPods can only run one container at a time
CThe second container's image name is incorrect causing it to fail
DKubernetes does not support multiple containers in a Pod
Step-by-Step Solution
Solution:
  1. Step 1: Recall Pod container rules

    Pods can run multiple containers simultaneously if defined correctly.
  2. Step 2: Identify common failure reasons

    If one container is not running, a common cause is an incorrect image name or failure to pull the image.
  3. Final Answer:

    The second container's image name is incorrect causing it to fail -> Option C
  4. Quick Check:

    Container failure often due to wrong image name [OK]
Quick Trick: Check container image names if some containers don't run [OK]
Common Mistakes:
  • Believing Pods run only one container
  • Misplacing containers under metadata
  • Thinking Kubernetes disallows multiple containers in Pods

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes