kubernetes-troubleshooting

kubernetes-troubleshooting is a skill for Claude Code, Codex from nik-kale/sre-skills. It costs 54 tokens per session (2,142 once invoked), scanned A, original, MIT.

A step-by-step guide for diagnosing Kubernetes, a system that runs and manages containers, when pods or services fail.

In plain words
What is it for?
Investigating pod status, events, resource usage, startup failures, resource limits, and service connectivity with Kubernetes commands.
Why use it?
It organizes checks for common problems such as repeated crashes, memory termination, image-download failures, scheduling issues, and networking errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Investigating pod status, events, resource usage, startup failures, resource limits, and service connectivity with Kubernetes commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nik-kale/sre-skills/kubernetes-troubleshooting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nik-kale/sre-skills --skill kubernetes-troubleshooting
Clone the repo
git clone --depth 1 https://github.com/nik-kale/sre-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kubernetes-troubleshooting

README.md
[![agentmods](https://agentmods.dev/badge/skills/nik-kale/sre-skills/kubernetes-troubleshooting/github.svg)](https://agentmods.dev/skills/nik-kale/sre-skills/kubernetes-troubleshooting)
Your own site
<a href="https://agentmods.dev/skills/nik-kale/sre-skills/kubernetes-troubleshooting"><img src="https://agentmods.dev/badge/skills/nik-kale/sre-skills/kubernetes-troubleshooting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kubernetes-troubleshooting

Your own site · 80×15
<a href="https://agentmods.dev/skills/nik-kale/sre-skills/kubernetes-troubleshooting"><img src="https://agentmods.dev/badge/skills/nik-kale/sre-skills/kubernetes-troubleshooting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.02142
Opus 5 $0.00027 $0.01071
Sonnet 5 $0.00011 $0.00428
Haiku 4.5 $0.00005 $0.00214

Measured 11d ago against content hash e883ba1a17b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kubernetes-troubleshooting scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

kubectl exec <pod-name> -n <namespace> -- wget -qO- localhost:<port>/health
skills/kubernetes-troubleshooting/SKILL.md · 340 lines

How it starts

The opening of the file, as written. The whole thing — 340 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kubernetes Troubleshooting

Systematic approach to debugging Kubernetes issues.

When to Use This Skill

  • Pod stuck in CrashLoopBackOff
  • OOMKilled errors
  • ImagePullBackOff failures
  • Pod not starting or scheduling
  • Service connectivity issues
  • Resource constraint problems

Quick Diagnostic Commands

Start with these commands to understand the current state:

# Cluster overview
kubectl get nodes
kubectl get pods -A | grep -v Running

# Specific namespace
kubectl get pods -n <namespace>
kubectl get events -n <namespace> --sort-by='.lastTimestamp' | tail -20

# Resource usage
kubectl top nodes
kubectl top pods -n <namespace>

Pod Debugging Workflow

Step 1: Check Pod Status

kubectl get pod <pod-name> -n <namespace> -o wide
kubectl describe pod <pod-name> -n <namespace>

Look for:

  • Status: What state is the pod in?
  • Conditions: Ready, ContainersReady, PodScheduled
  • Events: Recent events at the bottom of describe output

Step 2: Identify the Problem Category

Symptom Likely Cause Go To Section
Pending Scheduling issue Scheduling Issues
CrashLoopBackOff Application crash CrashLoopBackOff
ImagePullBackOff Image/registry issue Image Pull Issues
OOMKilled Memory exhaustion OOMKilled
Running but not Ready Health check failing Readiness Issues
Error Container error Container Errors

Common Issues

Scheduling Issues

Pod stuck in Pending state.

Diagnostic:

kubectl describe pod <pod-name> -n <namespace> | grep -A 10 Events

Common Causes:

Event Message Cause Fix
Insufficient cpu/memory Not enough resources Add nodes or reduce requests
node(s) had taints Node taints Add tolerations or remove taints
no nodes available No matching nodes Check node selector/affinity
persistentvolumeclaim not found PVC missing Create the PVC

Read the full file on GitHub · 340 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 340 lines · 54 tokens per session scan A e883ba1a17b5

Subscribe to this mod's changes

kubernetes-troubleshooting is a skill published in the GitHub repository nik-kale/sre-skills (11 stars, last pushed 7mo ago), licensed MIT. It adds 54 tokens to every session and 2,142 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

image-pull-debug

Diagnose container image pull failures (ErrImagePull / ImagePullBackOff). Checks pod status, containerd logs, and events to identify root cause.

scitix/siclaw · 36 tokens

pod-pending-debug

Diagnose pod scheduling failures (Pending, Unschedulable). Checks events, node resources, taints, affinity, and PVC bindings to identify why a pod cannot be scheduled.

scitix/siclaw · 41 tokens

kubernetes-specialist

Use when managing Kubernetes clusters, debugging Pods and workloads, designing Helm charts, reviewing manifests, or improving deployment, scaling, and observability practices.

seaworld008/Commonly-used-high-value-skills · 34 tokens

gke-workload-troubleshooting

Systematic Standard Operating Procedure (SOP) for diagnosing GKE workload failures, crash loops, resource OOMs, mounting errors, and connectivity timeouts.

gke-labs/kube-agents · 40 tokens

node

OpenShift Node team assistant. Covers kubelet, MCO, CRI-O, crun, conmonrs, Kueue operator, Jira (OCPNODE/OCPBUGS), Red Hat KB/support cases, Prometheus, and K8s/OCP docs. Triggers on OpenShift node-layer development, deployment, debugging, or team workflow tasks. For CVE/vulnerability triage, analysis, or reporting…

openshift-eng/ai-helpers · 108 tokens

archestra-dev-investigate

Use when investigating Archestra bugs or incidents — staging issues, backend 50x errors, Drizzle failed queries, DB connection pressure, deploy regressions, or Kubernetes/runtime symptoms. Orientation only; defers the process to /investigate.

archestra-ai/archestra · 54 tokens