Bird
0
0

After deploying a new version of your app, kubectl get pods shows pods stuck in ContainerCreating. What command helps diagnose the issue?

medium📝 Predict Output Q5 of 15
Kubernetes - Troubleshooting
After deploying a new version of your app, kubectl get pods shows pods stuck in ContainerCreating. What command helps diagnose the issue?
Akubectl delete pod <pod-name>
Bkubectl scale deployment <deployment-name> --replicas=0
Ckubectl get nodes
Dkubectl describe pod <pod-name>
Step-by-Step Solution
Solution:
  1. Step 1: Understand what ContainerCreating means

    It means the pod is waiting for container setup, possibly stuck on image pull or volume mount.
  2. Step 2: Use 'kubectl describe pod' to see detailed events

    This command shows events and errors causing the delay.
  3. Final Answer:

    kubectl describe pod <pod-name> -> Option D
  4. Quick Check:

    Diagnose ContainerCreating with describe pod [OK]
Quick Trick: Use describe pod to see pod events and errors [OK]
Common Mistakes:
  • Deleting pods before diagnosis
  • Checking nodes without pod details
  • Scaling deployment without root cause

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes