Kubernetes Pod Debugger
Enter your pod details and issue type. Get a step-by-step diagnostic command sequence, what to look for in each output, and common fix commands.
Pod Details
Frequently Asked Questions
What causes CrashLoopBackOff?▼
CrashLoopBackOff means the container keeps starting and crashing. Kubernetes backs off between restarts (1s, 2s, 4s... up to 5 minutes). Common causes: application error on startup (bad config, missing env var), failed health check, out-of-memory kill (OOMKilled), or trying to bind to an already-used port. Check 'kubectl logs' and 'kubectl describe pod' for the exit code and last error.
Why is my pod stuck in Pending?▼
Pending means Kubernetes can't schedule the pod. Common causes: insufficient CPU/memory on all nodes (FailedScheduling), PodDisruptionBudget blocking, taint/toleration mismatch (NoSchedule), NodeAffinity/NodeSelector not matching any node, or PVC not bound (no storage class). Check 'kubectl describe pod' for the Events section which usually identifies the exact reason.
What is ImagePullBackOff vs ErrImagePull?▼
ErrImagePull is the initial failure when Kubernetes can't pull a container image. ImagePullBackOff is the retry state with exponential backoff. Causes: typo in image name, private registry without imagePullSecrets, rate limiting (Docker Hub), or deleted image tag. Fix by checking the image name, adding imagePullSecrets for private registries, or using a specific tag instead of latest.
How do I get logs from a crashed container?▼
For a crashed/restarted container, use 'kubectl logs <pod> --previous' (-p) to get the logs from the last terminated container instance. Without --previous you get current instance logs (which may be empty if it just started). For multi-container pods, add '-c <container-name>' to target a specific container.
What is OOMKilled and how do I fix it?▼
OOMKilled (exit code 137) means the container exceeded its memory limit and was killed by the Linux OOM killer. Fix: either increase the memory limit in your resource spec (limits.memory), or optimize your application's memory usage. Use 'kubectl top pods' to see actual memory usage and set your limit to at least 2× the observed peak. Check for memory leaks with profiling tools.
How do I exec into a running pod for debugging?▼
Use 'kubectl exec -it <pod-name> -- /bin/sh' (or /bin/bash for bash). For pods without a shell (distroless), use 'kubectl debug': it creates an ephemeral debug container with tools attached to the same pod. Always specify '-n <namespace>' if not in the default namespace.
Related Products
on GumroadGitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →You Might Also Need
Docker Run Command Builder
Build complete docker run commands visually. Configure image, ports, volumes, environment variables, network, restart policy, detached mode, and more. Generates the exact docker run command.
Open free tool →
Dockerfile Linter
Paste your Dockerfile and instantly check for common issues: latest tags, missing HEALTHCHECK, running as root, cache-busting COPY order, ADD vs COPY, and multi-stage build suggestions.
Open free tool →
Dockerfile Generator
Interactive wizard to generate production-ready Dockerfiles for Node.js, Python, Go, Java, and Rust. Multi-stage builds, port config, custom layers.
Open free tool →
More Free Tools
Related Articles
Docker Compose vs Kubernetes: When to Use Each (2026)
A practical guide to choosing between Docker Compose and Kubernetes in 2026. Compare complexity, use cases, cost, and learn when to migrate from one to the other.
Kubernetes Cost Optimization: A Practical Guide for 2026
Reduce your Kubernetes costs by 40-60% with rightsizing, VPA/HPA, spot instances, namespace quotas, and cost monitoring tools like Kubecost. Real examples included.
Essential Kubernetes Tools for Modern DevOps Teams in 2026
A practical guide to the most important Kubernetes tools in 2026, covering cluster management, observability, security, CI/CD integration, and developer productivity for teams running Kubernetes at scale.
Best Kubernetes Auto-Update Tools 2026: Keep Clusters Current Without Downtime
Complete guide to Kubernetes auto-update tools in 2026. Covers Renovate Bot, Argo CD Image Updater, Flux, Kured, and cluster upgrade strategies for zero-downtime Kubernetes management.
Kubernetes vs Docker Swarm in 2026: Which Should You Choose?
A practical comparison of Kubernetes and Docker Swarm for container orchestration in 2026—covering complexity, scaling, community, and when to use each.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →