Files
awesome-kubernetes/v2-docs/kubernetes-troubleshooting.md

39 KiB
Raw Permalink Blame History

description
description
Top Kubernetes Troubleshooting resources for 2026, AI-ranked: Awesome Chaos Engineering, kubectl-debug and more — curated Cloud Native tools, guides and references.

Kubernetes Troubleshooting

!!! tip "Nubenetes V2 Elite Portal" You are browsing the AI-Curated V2 Elite Edition. Looking for the exhaustive list of references? Check out the V1 Historical Archive.

!!! info "Architectural Context" Detailed reference for Kubernetes Troubleshooting in the context of The Container Stack.

Architectural Foundations

Kubernetes Tools

General Reference

Architecture

Pod Lifecycle

Ephemeral Containers

  • (2023) linkedin.com: Kubernetes Ephemeral Containers | Bibin Wilson [COMMUNITY-TOOL] — Practical implementation breakdown demonstrating how engineers can leverage kubectl debug to attach ephemeral containers to scratch or distroless pods. Provides real-world configuration examples and use cases.
  • (2023) iximiuz.com: Kubernetes Ephemeral Containers and kubectl debug Command 🌟 [COMMUNITY-TOOL] [GUIDE] — A comprehensive deep-dive into the architectural mechanics of kubectl debug and ephemeral containers. Explains container namespaces sharing, security contexts, and step-by-step diagnostic workflows on live clusters.
  • (2022) opensource.googleblog.com: Introducing Ephemeral Containers [ADVANCED LEVEL] [COMMUNITY-TOOL] — The foundational announcement from Google detailing the integration of ephemeral containers in Kubernetes. Outlines the architectural mechanics of injecting debugging tooling directly into running distroless or minimal containers via the API.

Chaos Engineering

Curated Playbooks

Awesome Lists

  • (2023) ==Awesome Chaos Engineering== 6589 🌟🌟🌟🌟🌟 [DE FACTO STANDARD] — The premier curated directory of resources, tools, and papers dedicated to the practice of Chaos Engineering. It indexes tools for simulating network latency, injecting resource stress, and terminating instances across various platforms, with a strong focus on cloud-native environments. This is a must-have reference for engineering teams building self-healing, fault-tolerant distributed systems.

Cloud-native Platforms

Operating Systems

Flatcar Linux

  • (2024) kinvolk.io [ADVANCED LEVEL] [COMMUNITY-TOOL] — The official portal of Kinvolk (acquired by Microsoft), pioneers of Flatcar Container Linux, Lokomotive Kubernetes, and Inspektor Gadget. The platform represents an essential pillar in the development of minimal, immutable operating systems and eBPF-based Kubernetes tooling.

Development Workflow

Local Development

Bridge To Kubernetes

  • (2021) thorsten-hans.com: Debugging apps in Kubernetes with Bridge [COMMUNITY-TOOL] [GUIDE] — Hands-on guide focusing on Microsoft's 'Bridge to Kubernetes' tool for direct local debugging within an active cluster context. Evaluates how the mechanism redirects traffic to a local machine without modifying production routing topologies.

Infrastructure

Compute

CPU Performance

  • (2023) The Hidden CPU Throttling Crisis in Kubernetes Clusters [NONE CONTENT] [ADVANCED LEVEL] [COMMUNITY-TOOL] — Investigates latency spikes caused by the Linux CFS (Completely Fair Scheduler) quota enforcement mechanism in Kubernetes. Highlights how kernel bugs throttle containerized workloads even when usage is far below limits, providing remediation strategies such as adjusting quotas or using CPU pins.

Kubernetes

Core Mechanics

Pod Lifecycle (1)

  • (2020) erkanerol.github.io: I wish pods were fully restartable [ADVANCED LEVEL] [COMMUNITY-TOOL] — This reflective post explores the architectural limitations of the Kubernetes Pod lifecycle, specifically the inability to easily restart individual containers without recreating the entire Pod. It analyzes proposed community designs and current workarounds, such as mutating controllers or rollout restarts. It provides deep architectural insights into the design decisions governing Kubernetes resource controllers.

Networking

Ingress Troubleshooting

  • (2019) managedkube.com: Troubleshooting a Kubernetes ingress [COMMUNITY-TOOL] — Kubernetes Ingress troubleshooting requires systematically tracing path matching, port definitions, and target service selectors. This guide isolates a common failure pattern where configuration mismatches between Ingress specifications and Pod ports disrupt traffic flow. It provides actionable diagnostic commands to verify endpoint connectivity and route mapping.

Observability

Events

  • (2023) groundcover.com: Failure Is an Option: How to Stay on Top of K8s Container Events [COMMUNITY-TOOL] — Kubernetes events are transient cluster logs that provide critical context for system state changes and errors, but their short lifespan makes persistent logging essential. This article analyzes strategies for collecting, storing, and visualizing container events to catch intermittent failures. Utilizing event streaming helps platform engineers build early-warning systems before issues escalate to outages.

Events Logging

  • (2022) decisivedevops.com: Kubernetes Events — News feed of your cluster [COMMUNITY-TOOL] — This guide explains the utility of Kubernetes events as a real-time diagnostic feed of cluster activities. It demonstrates how to capture, filter, and stream these resource events to external observability backends using open-source collectors. Properly configured event logging ensures that platform teams maintain a historical record of pod crashes and scheduling failures.

Resource Management

CPU Scheduling

  • (2021) andydote.co.uk: The Problem with CPUs and Kubernetes [ADVANCED LEVEL] [COMMUNITY-TOOL] — A low-level analysis of how the Linux kernel scheduler interacting with CFS quota limits can severely throttle Kubernetes pods, even when total CPU utilization is low. The author exposes the architectural friction between container resource limits and multi-threaded application runtimes like Java and Go. Platform engineers will find valuable tuning techniques to mitigate silent latency spikes caused by CPU throttling.

Metrics Collection

  • (2023) learnitguide.net: How to Check Memory Usage of a Pod in Kubernetes? [COMMUNITY-TOOL] — Monitoring memory consumption is critical to preventing out-of-memory (OOM) evictions and performance degradation. This guide explains how to leverage the Kubernetes Metrics Server via kubectl top, alongside advanced Prometheus queries, to track real-time memory footprints. It contrasts raw memory utilization against requested resource boundaries to help right-size workloads.

OOM and Throttling

  • (2021) sysdig.com: Kubernetes OOM and CPU Throttling [COMMUNITY-TOOL] — A highly analytical post from Sysdig comparing the operational impacts of memory exhaustion (OOM) versus CPU exhaustion (Throttling). While OOM errors lead to sudden container termination and service disruption, CPU throttling leads to slow response times and latency degradation. The guide explains how to monitor these metrics to balance cluster cost against application performance.

Qos and OOM Score

  • (2020) cloudyuga.guru: How does Kubernetes assign QoS class to pods through OOM score? [ADVANCED LEVEL] [COMMUNITY-TOOL] — This article provides a rigorous, technical exploration of how Kubernetes maps container memory/CPU requests and limits to Quality of Service (QoS) classes: Guaranteed, Burstable, and BestEffort. It details how the orchestrator translates these classes into Linux OOM scores, which the kernel uses to select victim processes during memory pressure. Mastering this mapping is vital for designing reliable, high-density cluster workloads.

Runtime Security

Sandboxed Containers

  • (2022) cloud.redhat.com: Troubleshooting Sandboxed Containers Operator [ADVANCED LEVEL] [COMMUNITY-TOOL] — Deploying secure, isolated runtimes within Kubernetes demands deep knowledge of sandboxed container configurations, such as Kata Containers. This guide explores troubleshooting the Sandboxed Containers Operator on OpenShift, focusing on kernel module loading and hardware virtualization flags. It is an indispensable resource for platform engineers managing untrusted multi-tenant workloads.

Security

Container Images

  • (2020) youtube: 3 Ways to Detect Evil "Latest" Image Tags in Kubernetes - Kubevious [COMMUNITY-TOOL] — Using the 'latest' container image tag in production is a critical antipattern that breaks deployment reproducibility and introduces security risks. This guide uses Kubevious to outline three automated detection techniques to intercept and block these non-deterministic tags in deployment pipelines. It emphasizes implementing admission controllers to enforce strict version tagging.

Troubleshooting

Architectural Slides

  • (2019) speakerdeck.com/mhausenblas (redhat): Troubleshooting Kubernetes apps [COMMUNITY-TOOL] — This presentation slide deck by Michael Hausenblas maps out the complete lifecycle of Kubernetes application troubleshooting, from log collection to packet analysis. It offers a structured classification of failure domains, targeting scheduling, networking, and application-level errors. Highly recommended for visual learners seeking a comprehensive overview of cloud-native debugging patterns.

Case Study

  • (2021) thenewstack.io: What David Flanagan Learned Fixing Kubernetes Clusters [COMMUNITY-TOOL] — This synthesis highlights critical real-world lessons from fixing broken Kubernetes clusters under pressure, illustrating how misconfigurations lead to spectacular outages. It emphasizes that basic oversights in DNS configuration, RBAC permissions, and resource constraints cause the majority of cluster-wide failures. This post-mortem review serves as a warning and a guide to preventative cluster maintenance.

Command Line

  • (2021) thenewstack.io: Living with Kubernetes: Debug Clusters in 8 Commands 🌟 [COMMUNITY-TOOL] — A highly practical command-line cheat sheet that isolates eight crucial kubectl commands for diagnosing cluster and application failures. By leveraging advanced output formatting and resource filtering, engineers can quickly drill down from high-level service failures to underlying node exhaustion. This primer is designed for rapid incident response and system validation.

Crashloopbackoff

  • (2023) devtron.ai: Troubleshoot: Pod Crashloopbackoff [COMMUNITY-TOOL] — A targeted diagnostic manual focusing exclusively on resolving Pod CrashLoopBackOff errors within a Kubernetes cluster. It details the precise troubleshooting path, examining application configuration errors, environment variable omissions, and permission issues. It also includes strategies for extracting logs from previously terminated container instances.
  • (2022) komodor.com: Kubernetes CrashLoopBackOff Error: What It Is and How to Fix It [COMMUNITY-TOOL] — A comprehensive playbook from Komodor designed to help engineers systematically isolate the root causes of CrashLoopBackOff errors. It covers common trigger events such as database connection timeouts, file access permissions, and mismatched configuration maps. By mapping these triggers, it helps engineers transition from reactive troubleshooting to proactive reliability planning.
  • (2021) sysdig.com: What is Kubernetes CrashLoopBackOff? And how to fix it 🌟 [COMMUNITY-TOOL] — A definitive guide from Sysdig addressing the causes, mechanics, and remediation steps for the ubiquitous CrashLoopBackOff state. The article unpacks how the kubelet manages backoff loops when an application continuously crashes on startup. It outlines diagnostic strategies combining container telemetry with log output to pinpoint runtime exceptions.

Developer Enablement

  • (2021) thenewstack.io: 6 Kubernetes Best Practices to Empower Devs to Troubleshoot [COMMUNITY-TOOL] — DevOps maturity relies on empowering application developers to diagnose and resolve their own Kubernetes errors without administrative intervention. By providing accessible log aggregation, standardized event alerts, and ephemeral debugging shells, platform teams can eliminate operational bottlenecks. This framework details how to design developer-friendly observability environments.

Development Environments

  • (2023) devzero.io: Kubernetes Debugging Tips [COMMUNITY-TOOL] — Optimizing the inner-loop developer experience in Kubernetes requires special tooling to bypass slow build-and-deploy cycles. This guide reviews practical tips for configuring local debugging environments, port forwarding, and syncing code directly into remote dev clusters. Implementing these techniques allows developers to debug code in real time within a cluster-like context.

Diagnostic Manuals

  • (2022) ==github.com/metaleapca: metaleap-k8s-troubleshooting.pdf== 40 [ADVANCED LEVEL] 🌟🌟🌟🌟🌟 [DE FACTO STANDARD] — An exhaustive community-driven reference PDF that serves as a diagnostic field manual for complex Kubernetes cluster issues. It covers everything from low-level CNI networking issues to control plane degradation and API server latency. This document is a valuable offline resource for operations teams handling large-scale production incidents.

Ephemeral Containers (1)

  • (2022) loft.sh: Using Kubernetes Ephemeral Containers for Troubleshooting [ADVANCED LEVEL] [COMMUNITY-TOOL] — This guide explains how to leverage Kubernetes Ephemeral Containers—the native, standard way to troubleshoot running pods without pre-packaging debug tools in production images. By launching a temporary diagnostic container within the target pod's namespace, engineers can safely run tools like curl, tcpdump, or strace. This represents the modern, secure gold standard for debugging production distroless containers.

Exit Codes

  • (2022) komodor.com: Exit Codes In Containers & Kubernetes The Complete Guide 🌟 [COMMUNITY-TOOL] — An industry-standard reference guide demystifying exit codes returned by failing containers, from common application errors (Exit Code 1) to system-level kills (Exit Code 137). It details how the container runtime and Linux kernel interact to generate these codes, providing a crucial diagnostic map for troubleshooting CrashLoopBackOffs. Understanding these codes is essential for automated root-cause analysis.

Fundamentals

  • (2021) thenewstack.io: Kubernetes Troubleshooting Primer [COMMUNITY-TOOL] — A foundational text that introduces the core mechanics of the Kubernetes control plane and how components interact during deployment failures. It explains the relationship between the API server, controller manager, scheduler, and kubelet, illustrating where common failures arise. This primer establishes the necessary context for executing advanced diagnostics.

General Guide

  • (2021) blog.alexellis.io: How to Troubleshoot Applications on Kubernetes 🌟 [COMMUNITY-TOOL] — A classic, hands-on troubleshooting guide tailored for engineers deploying applications to Kubernetes clusters. It provides a logical flow of commands from checking container logs and inspecting events to executing commands inside a container. This resource is excellent for developing the primary instincts required to resolve containerized application failures.

Methodologies

  • (2022) freecodecamp.org: How to Simplify Kubernetes Troubleshooting [COMMUNITY-TOOL] — This comprehensive troubleshooting guide reframes cluster diagnostics into a logical, step-by-step methodology rather than chaotic guesswork. It focuses on isolating issues systematically across the application layer, the container runtime, and the underlying orchestrator networking. Utilizing this structured approach significantly lowers the cognitive load of on-call engineers.

Pod Diagnostics

  • (2023) learnitguide.net: How To Troubleshoot Kubernetes Pods [COMMUNITY-TOOL] — A focused tutorial describing standard commands and methodologies to diagnose Pod failures such as ImagePullBackOff, CrashLoopBackOff, and Evicted states. It systematically walks through the utilization of kubectl describe, logs, and events to construct an accurate failure timeline. It is perfect for junior engineers looking to build baseline debugging proficiency.

Pod Eviction

  • (2021) sysdig.com: Understanding Kubernetes Evicted Pods [COMMUNITY-TOOL] — Pod eviction is a proactive defense mechanism executed by the kubelet when a node faces critical resource pressure, such as low disk space or memory exhaustion. This guide details the eviction lifecycle, explaining the difference between soft and hard eviction thresholds. It provides practical strategies for configuring tolerations and cluster autoscaling to prevent widespread application downtime.

Pod Scheduling

  • (2021) sysdig.com: Understanding Kubernetes pod pending problems [COMMUNITY-TOOL] — Pods trapped in a 'Pending' state point directly to scheduling failures caused by resource exhaustion, node selectors, or volume binding delays. This deep dive from Sysdig explains how to read scheduler events and analyze resource request limits to unlock stuck deployments. Engineers will learn how to identify node-affinity conflicts and taint/toleration mismatches.

Real-world Examples

  • (2022) tennexas.com: Kubernetes Troubleshooting Examples [COMMUNITY-TOOL] — An essential compilation of practical Kubernetes troubleshooting scenarios focusing on common network, storage, and configuration failures. It provides hands-on diagnostic scripts and commands to dissect failing pods and unresolvable services. This playbook bridges the gap between theoretical knowledge and day-to-day cluster administration.

Troubleshooting Tooling

Kubectl Plugins

  • (2020) ==kubectl-debug== 2305 [ADVANCED LEVEL] 🌟🌟🌟🌟🌟 [DE FACTO STANDARD] [LEGACY] — Originally a popular community-built plugin to launch debugging containers within target pods, kubectl-debug has largely been superseded by native Kubernetes Ephemeral Containers (kubectl debug command) in modern releases. This project remains a valuable reference for historical context and legacy cluster compatibility. For modern clusters, engineers are strongly advised to transition to built-in Kubernetes diagnostic commands.

Observability (1)

Debugging

Automation

  • (2022) github.com/airwallex: k8s-pod-restart-info-collector [GO CONTENT] [COMMUNITY-TOOL] — An automated utility designed to capture and log state configuration, events, and logs instantly when a pod restarts, offering immediate post-mortem insights for ephemeral microservices.

CLI Extensions

  • (2021) github.com/JamesTGrant/kubectl-debug 373 [GO CONTENT] 🌟🌟 [COMMUNITY-TOOL] — A kubectl plugin designed to launch temporary debugging containers within a target pod namespace. Streamlines manual container introspection prior to the widespread adoption of native ephemeral containers.

CLI Operations

  • (2023) A Complete Guide to Kubectl exec [COMMUNITY-TOOL] [GUIDE] — Comprehensive guide explaining the inner workings of the 'kubectl exec' command. Breaks down how connection handshakes occur between the API server, Kubelet, and container runtimes (CRI).
  • (2021) thenewstack.io: Living with Kubernetes: 12 Commands to Debug Your Workloads 🌟 [COMMUNITY-TOOL] — Curated list of 12 essential kubectl commands designed to streamline low-level container and network diagnostics. Targets common day-2 operational challenges, addressing resource pressure, storage attachments, and system event inspection.

Container Debugging

  • (2025) iximiuz/cdebug 1652 [GO CONTENT] [ADVANCED LEVEL] 🌟🌟🌟 [COMMUNITY-TOOL] — A specialized CLI tool for debugging running containers. Allows attaching ephemeral tooling environments into running, stripped-down containers (even without Kubernetes, working directly with Docker/containerd).
  • (2022) felipecruz91/debug-ctr 52 [GO CONTENT] 🌟 [COMMUNITY-TOOL] — Lightweight helper utility targeting runtimes at the node level. Allows developers to run custom debug tools directly inside active containerd namespaces without impacting root node security models.

Containers

  • (2023) KDBG: Small Kubernetes debugging container 36 [SHELL CONTENT] 🌟 [COMMUNITY-TOOL] — A lightweight Kubernetes debugging container designed to simplify troubleshooting inside active pods. It packages key diagnostic tools (curl, dig, iproute2, etc.) for direct execution inside the cluster networking space, serving as an effective sidecar or ephemeral debugging agent.

Legacy Tooling

  • (2021) palaemon.io [LEGACY] — Legacy troubleshooting tool aimed at optimizing container workloads and analyzing scheduling configurations. Now largely archived but remains historically relevant for declarative scheduling architectures.

Pre-flight Checks

  • (2025) github.com/replicatedhq/troubleshoot 582 [GO CONTENT] [ADVANCED LEVEL] 🌟🌟 [COMMUNITY-TOOL] — A framework providing preflight checks and support-bundle collection capabilities for Kubernetes applications. Crucial for enterprise environments deploying applications onto heterogeneous on-premises or customer-managed clusters.

Troubleshooting Guide

Workloads

  • (2022) towardsdatascience.com: The Easiest Way to Debug Kubernetes Workloads [COMMUNITY-TOOL] — Practical overview detailing baseline approaches to troubleshooting Kubernetes workloads, focusing on common command-line routines. It bridges the gap for data engineers and developers needing rapid context on kubectl logs, describes, and port-forwards.

Deployments

Telemetry

  • (2021) StatusBay 387 [GO CONTENT] 🌟🌟 [COMMUNITY-TOOL] — An active deployment monitoring tool that provides real-time visibility into Kubernetes deployment sequences. By aggregating event logs and state transitions, StatusBay offers clean diagnostic traces for failed releases, improving post-mortem analysis.

Networking (1)

API Traffic Analyzer

  • (2024) kubetools.io: Kubeshark API Traffic Analyzer for Kubernetes [ADVANCED LEVEL] [COMMUNITY-TOOL] — An advanced network analyzer for Kubernetes (formerly API Tap) that captures and decrypts cluster traffic in real-time. Leverages modern eBPF and packet capture technologies to trace service-to-service communication.

Troubleshooting Platforms

Enterprise Monitoring

  • (2024) komodor.com [COMMUNITY-TOOL] — Commercial troubleshooting and observability platform offering absolute end-to-end lineage visualization for Kubernetes resources. Pinpoints root causes of failures by cross-referencing changes, logs, and metrics.

UI Clients

Multi-cluster

  • (2024) KubeUI: A Desktop Kubernetes Client 311 [C# CONTENT] 🌟🌟 [COMMUNITY-TOOL] — A high-performance, desktop-optimized UI designed to stream, monitor, and interact with live cluster metrics and objects. It enhances developer agility through dynamic views of multi-cluster namespaces and active workload metrics.

💡 Explore Related: OCP 4 | Container Managers | Openshift

🔗 See Also: About | Postman