Skip to main content
InterviewHubPRO
Section Overview
Q24

Question 24 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

48%
Kubernetes (K8s) (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

Troubleshooting: CrashLoopBackOff, ImagePullBackOff, and Pending Pods.

senior LevelMost AskedDocker & ContainersKubernetesSystem Design

In Simple Words:

  • ImagePullBackOff:
    • Typo in image name or tag.
    • Missing image pull secret for private registry (imagePullSecrets).
    • Container registry rate limit hit (e.g. Docker Hub anonymous pulls).
  • CrashLoopBackOff:
    • Container starts and exits repeatedly.
    • Debug: Run kubectl logs <pod> --previous to inspect the error log of the crashed container instance before restart!
    • Common causes: Missing environment variable, DB connection timeout, failed syntax, or file permission error.
  • Pending:
    • Pod cannot be scheduled.
    • Run kubectl describe pod <pod> and inspect Events:
      • "0/10 nodes available: insufficient memory/cpu" -> Needs node autoscaling or lower requests.
      • "node(s) had untolerated taint" -> Check node taints.