Your pod is CrashLoopBackOff. You've run 𝘬𝘶𝘣𝘦𝘤𝘵𝘭 𝘥𝘦𝘴𝘤𝘳𝘪𝘣𝘦 𝘱𝘰𝘥 17 times. You still don't know why. Here's my Kubernetes debugging cheatsheet. Save this. You'll need it at 3am. 𝗦𝘁𝗲𝗽 𝟭: 𝗪𝗵𝗮𝘁'𝘀 𝘁𝗵𝗲 𝗮𝗰𝘁𝘂𝗮𝗹 𝗲𝗿𝗿𝗼𝗿? 𝘬𝘶𝘣𝘦𝘤𝘵𝘭 𝘭𝘰𝘨𝘴 <𝘱𝘰𝘥> --𝘱𝘳𝘦𝘷𝘪𝘰𝘶𝘴 The --previous flag shows logs from the crashed container. Most people forget this. 𝗦𝘁𝗲𝗽 𝟮: 𝗪𝗵𝘆 𝗱𝗶𝗱 𝗶𝘁 𝗰𝗿𝗮𝘀𝗵? 𝘬𝘶𝘣𝘦𝘤𝘵𝘭 𝘥𝘦𝘴𝘤𝘳𝘪𝘣𝘦 𝘱𝘰𝘥 <𝘱𝘰𝘥> | 𝘨𝘳𝘦𝘱 -𝘈5 "𝘓𝘢𝘴𝘵 𝘚𝘵𝘢𝘵𝘦" Exit code 137 = OOMKilled. Exit code 1 = app error. Exit code 143 = SIGTERM. 𝗦𝘁𝗲𝗽 𝟯: 𝗜𝘀 𝗶𝘁 𝗮 𝗿𝗲𝘀𝗼𝘂𝗿𝗰𝗲 𝗶𝘀𝘀𝘂𝗲? 𝘬𝘶𝘣𝘦𝘤𝘵𝘭 𝘵𝘰𝘱 𝘱𝘰𝘥 <𝘱𝘰𝘥> Hitting memory limits? That's your OOM. Increase limits or fix the leak. 𝗦𝘁𝗲𝗽 𝟰: 𝗜𝘀 𝗶𝘁 𝗮 𝘀𝘁𝗮𝗿𝘁𝘂𝗽 𝗶𝘀𝘀𝘂𝗲? 𝘬𝘶𝘣𝘦𝘤𝘵𝘭 𝘨𝘦𝘵 𝘦𝘷𝘦𝘯𝘵𝘴 --𝘧𝘪𝘦𝘭𝘥-𝘴𝘦𝘭𝘦𝘤𝘵𝘰𝘳 𝘪𝘯𝘷𝘰𝘭𝘷𝘦𝘥𝘖𝘣𝘫𝘦𝘤𝘵.𝘯𝘢𝘮𝘦=<𝘱𝘰𝘥> Events tell you what Kubernetes sees. Image pull errors, volume mounts, scheduling failures. 𝗦𝘁𝗲𝗽 𝟱: 𝗖𝗮𝗻 𝘆𝗼𝘂 𝗴𝗲𝘁 𝗶𝗻? 𝘬𝘶𝘣𝘦𝘤𝘵𝘭 𝘦𝘹𝘦𝘤 -𝘪𝘵 <𝘱𝘰𝘥> -- /𝘣𝘪𝘯/𝘴𝘩 If the container is crashing too fast, change the command to sleep 3600 temporarily. 𝗕𝗼𝗻𝘂𝘀: 𝗧𝗵𝗲 𝗻𝘂𝗰𝗹𝗲𝗮𝗿 𝗼𝗽𝘁𝗶𝗼𝗻 𝘬𝘶𝘣𝘦𝘤𝘵𝘭 𝘳𝘶𝘯 𝘥𝘦𝘣𝘶𝘨 --𝘪𝘮𝘢𝘨𝘦=𝘣𝘶𝘴𝘺𝘣𝘰𝘹 --𝘳𝘮 -𝘪𝘵 -- 𝘴𝘩 Spin up a debug container in the same namespace. Test DNS, network, service discovery. 𝟵𝟬% 𝗼𝗳 𝗽𝗿𝗼𝗱 𝗶𝘀𝘀𝘂𝗲𝘀 𝗮𝗿𝗲: • OOMKilled (increase memory) • Config/secrets missing (check mounts) • Image pull failed (check registry creds) • Readiness probe too aggressive (increase timeout) What's your go-to debugging command? #Kubernetes #SRE #DevOps #Debugging #K8s
Sri Sainath Adusumilli’s Post
More Relevant Posts
-
🚨 WARNING: Only for those who speak YAML 🚨 Let’s be real: your feed is currently 90% "humbled and honored" announcements and 10% AI-generated sunsets. Time for a manual override. We're diving straight into the fire: Kubernetes and the dreaded kubectl apply. The screen below is a recreation of a standard Monday morning nightmare. It's a VS Code terminal. It's a failing Kubernetes deployment script. It's definitely not working. 🧩 The Terminal Puzzle 🧩 Your Mission, should you choose to accept it: Look closely at the image. There is a single, subtle, infuriating syntax error that is completely crashing this pod. - It might be a rogue space. - It might be a missing required field. - It might be the classic "one indent too many." We’ve kept it simple. We’ve kept it evil. 🏆 The Prize: The "Senior Logic" Badge 🏆 We’re not giving away laptops, but we are giving away something much more valuable: Ego-Boost Points™. The first person to drop the correct answer in the comments below, with a clear explanation of why it's the error, wins the "Senior Logic" badge. Prove your mastery before the coffee even kicks in. Let the games begin. Go. 👇 Brittan Reichley Zachary Walters Bryce Lennard Zak Kohler Drew Steinman, CPA #PlatformEngineering #Kubernetes #YAML #K8s #SeniorLogic #Debugging #CodingPuzzle #PlatformChallenge #DevOps #SRE #CloudNative
To view or add a comment, sign in
-
-
🐳 Debugging Docker doesn’t have to feel like guesswork. If you’ve ever spent hours stuck on a “works on my machine” issue, you know how tricky containers can get. The key isn’t doing more it’s doing the right things first. Here are a few Docker debugging habits that consistently save time: 🔍 Start with logs → docker logs often tells you exactly what’s wrong 🧩 Jump inside the container → use interactive mode to explore in real time ⚙️ Inspect configs → environment variables, mounts, and settings matter more than you think 🌐 Verify networking → many issues come from services not talking properly 🔁 Rebuild clean → --no-cache helps eliminate hidden layer issues 📊 Monitor resources → sometimes it’s just CPU or memory limits causing failures The biggest shift? Stop guessing. Start observing. Once you build this mindset, debugging becomes faster, calmer, and way more predictable 🚀 What’s one Docker issue that took you way too long to figure out? 👇 #Docker #DevOps #BackendDevelopment #Debugging #CloudNative
To view or add a comment, sign in
-
-
Your Docker images don't need to be 1.2 GB. I see it constantly: teams shipping containers with build tools, dev dependencies, and entire SDK toolchains baked into production images. The fix takes five minutes. Multi-stage builds let you separate the build environment from the runtime environment. You compile in one stage, then copy only the final artifact into a minimal base image. That's it. Here's the pattern I use for every Go service we deploy: Result: ~12 MB instead of 1.2 GB. Faster pulls, smaller attack surface, cleaner CVE scans. The distroless base has no shell, no package manager — nothing an attacker can use. Three rules I follow for every Dockerfile: → Pin image tags to a digest, not latest → Order layers from least to most frequently changed → Never ship what you don't need at runtime Small images aren't just tidy. They're faster to deploy, cheaper to store, and harder to exploit. #DevOps #Docker #CloudNative #ContainerSecurity #PlatformEngineering
To view or add a comment, sign in
-
-
Navigating the "Red Screen" Moment Nothing tests a team’s resolve quite like a 500 Critical Error in a live environment. 🚨 We’ve all been there: the logs are scrolling, the alerts are firing, and the pressure is on to find that one line of code or infrastructure hiccup causing the disruption. While these moments are high-stress, they are also the greatest opportunities for growth, improving our monitoring stacks, and refining our incident response protocols. The goal isn't just to fix the crash—it's to build a system resilient enough to handle the next one. How does your team handle live application crashes? Do you have automated rollbacks? Is your observability stack ready for real-time debugging? What’s your "go-to" first step when the alerts hit? Let’s talk about best practices for keeping cool when the production environment heats up. 👇 #SoftwareEngineering #DevOps #SystemArchitecture #CodingLife #SRE #TechLeadership #Debugging #IncidentResponse #WebDevelopment #Programming #SoftwareReliability #CloudComputing
To view or add a comment, sign in
-
-
What is a Pod? Most people answer like this: ❌ “Pod is the smallest unit in Kubernetes” That’s correct… but too basic. ✅ Answer Like a Pro 👉 “A Pod is the smallest unit in Kubernetes that runs one or more containers together, sharing the same network and storage — so they can work as a single application.” 💥 Real-World Scenario Let’s say you have: A Node.js application A logging sidecar container Both need to: Communicate via localhost Share files/logs 👉 You run them in the same Pod Why? ✔ Same network (localhost works) ✔ Shared storage ✔ Tightly coupled components 🔥 Production Insight In real projects, Pods are used when: Containers must talk to each other directly You need a sidecar pattern (logging, monitoring, proxy) Components are tightly coupled 🧠 Core Concept Think of a Pod like: 👉 A shared environment (mini machine) Where containers: Share IP Share storage Run together 🎯 How to Answer in Interview Instead of saying definition: Say what it does Explain why multiple containers are inside Give real use case (sidecar) 👉 This shows practical knowledge. ❌ Common Mistake Thinking: One container = One Pod (not always) Pods can have multiple containers (sidecar pattern). Medium blog link 🔗 https://lnkd.in/g-xEyrZ8 📌 Tomorrow: What happens when a Pod crashes? (Real debugging scenario) 💬 Question: Have you ever used sidecar containers in your projects? #Kubernetes #K8s #DevOps #30DaysOfK8s #InterviewPreparation #CloudNative #Containers #SRE #PlatformEngineering #LearningInPublic #TechCareers #DevOpsEngineer
To view or add a comment, sign in
-
-
Every developer knows the feeling: something works perfectly in your environment but fails elsewhere. Enter cache invalidation, the silent disruptor that can turn a smooth deployment into a debugging nightmare. This meme reminds us that while 'It works on my machine' is a common refrain, it’s not always the full story. Cache issues can lurk beneath the surface, affecting performance and user experience. Let’s embrace this as a reminder to test thoroughly across environments and consider cache management early in our development process. When cache invalidation joins your meeting—software's version of 'It works on my machine.' #DevLife #SoftwareDevelopment #CacheManagement #Debugging #TechMemes #EngineeringHumor
To view or add a comment, sign in
-
-
The Kubernetes Debugging Cheat Sheet! Most Kubernetes outages don’t need genius debugging. They need the right command at the right time. After enough 2AM incidents, I realized: 👉 The difference between a 5-minute fix and a 2-hour outage is usually just one missed command. Here’s what consistently saves me: * kubectl describe → tells you why it failed * kubectl logs -p → tells you why it crashed (90% of people forget this) * kubectl get events → tells you what just changed * kubectl exec → lets you prove your assumptions inside the container But the real unlock is this: 🧠 Stop running commands. Start asking better questions. * What actually broke? * Where is it running? * Is this a pod issue, node issue, or config issue? Then run the ONE command that answers that. Also… 👉 Filter everything. Always. Because Kubernetes doesn’t hide problems: it buries them in noise. I turned this into a cheat sheet I wish I had on day one. Save it, your future on-call self will thank you. #kubernetes #devops #sre #cloudcomputing #platformengineering #oncall #softwareengineering #debugging #tech #programming
To view or add a comment, sign in
-
-
Everyone’s #obsessed with the #model. Almost nobody talks about the #filesystem around it. Your #repo is now your #agent’s #personality. What does yours say about you? This is the part of #Claude #Code most teams still under-invest in the .claude/ directory. #Six subsystems, one folder, loaded in a strict order every session: → CLAUDE.md the system prompt you control. Stack, commands, conventions. → .mcp.json #MCP servers the agent can call (GitHub, Jira, Slack, your DBs). → settings.json permissions. Allow / Deny / Ask. Deny wins. → rules/ modular instructions so CLAUDE.md stays lean. → skills/ auto-triggered, lazy-loaded. This is the real context-engineering primitive. (commands/ has been merged into this.) → agents/ sub-agents with isolated context windows and their own tools. → hooks/ pre/post tool-use scripts. Auto-lint, block bad ops. The #interesting #design choice isn’t any single file. It’s the loading contract: CLAUDE.md is always in context, skills load only when relevant, sub-agents get their own window. It’s context engineering as a first-class discipline, not a prompt. And here’s the provoking part the edge of “AI coding productivity” in #2026 isn’t which model you pick. It’s how well your team commits its .claude/ folder to git. #ClaudeCode #AgenticAI #DeveloperExperience #ContextEngineering #AIInfrastructure
To view or add a comment, sign in
-
-
Day 13 – Real K8s Debugging Scenario: Pod stuck in ImagePullBackOff First check: kubectl describe pod <pod> Error: pull access denied repository does not exist or may require authorization Top 3 checks: 1️⃣ Image name/tag correct? 2️⃣ Private registry auth configured? 3️⃣ imagePullSecrets added? Check deployment: kubectl get deploy <app> -o yaml Found: imagePullSecrets: missing Root Cause : Private image but no authentication configured Fix: kubectl create secret docker-registry regcred \ --docker-username=<user> \ --docker-password=<pass> \ --docker-email=<email> Add to deployment: imagePullSecrets: - name: regcred\ Result: Pod pulled image successfully Rule: ImagePullBackOff = image or auth issue Read here: https://lnkd.in/dQ5veiar #Kubernetes #DevOps #100DaysChallenge
To view or add a comment, sign in
-
More from this author
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
Insightful