k8s-troubleshoot

k8s-troubleshoot is a skill for Claude Code, Codex from batu-sonmez/infraclaude. It costs 0 tokens per session (655 once invoked), scanned A, original, MIT.

A step-by-step guide for finding and diagnosing problems in Kubernetes, a system for running containerised applications across computers. It uses infrastructure tools to inspect pods, logs, services, metrics and deployments.

In plain words
What is it for?
Use it to investigate pods that will not start, trace high application latency, find memory leaks and check resource usage, deployments, dependencies and node capacity.
Why use it?
It gives the agent a consistent way to investigate failed starts, slow requests and memory problems instead of guessing from symptoms.

Skill for Claude CodeCodex

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

Good fit Use it to investigate pods that will not start, trace high application latency, find memory leaks and check resource usage, deployments, dependencies and node capacity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/batu-sonmez/infraclaude/k8s-troubleshoot
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 batu-sonmez/infraclaude --skill k8s-troubleshoot
Clone the repo
git clone --depth 1 https://github.com/batu-sonmez/infraclaude

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 k8s-troubleshoot

README.md
[![agentmods](https://agentmods.dev/badge/skills/batu-sonmez/infraclaude/k8s-troubleshoot/github.svg)](https://agentmods.dev/skills/batu-sonmez/infraclaude/k8s-troubleshoot)
Your own site
<a href="https://agentmods.dev/skills/batu-sonmez/infraclaude/k8s-troubleshoot"><img src="https://agentmods.dev/badge/skills/batu-sonmez/infraclaude/k8s-troubleshoot/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 k8s-troubleshoot

Your own site · 80×15
<a href="https://agentmods.dev/skills/batu-sonmez/infraclaude/k8s-troubleshoot"><img src="https://agentmods.dev/badge/skills/batu-sonmez/infraclaude/k8s-troubleshoot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 655 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.00655
Opus 5 $0.00000 $0.00328
Sonnet 5 $0.00000 $0.00131
Haiku 4.5 $0.00000 $0.00065

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

Security

Grade A, and why

k8s-troubleshoot scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/k8s-troubleshoot/SKILL.md · 58 lines

How it starts

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

Kubernetes Troubleshooting Guide

When debugging Kubernetes issues, follow this systematic approach using InfraClaude tools.

Pod Not Starting

  1. Use k8s_get_pods to identify the pod status
  2. Use k8s_describe_pod to check the Events section
  3. Common causes:
    • ImagePullBackOff: Wrong image name/tag, private registry auth, rate limiting
    • CrashLoopBackOff: Application error — check logs with k8s_get_pod_logs (also try previous: true)
    • Pending: Insufficient resources — check k8s_top_nodes for node capacity
    • Init container failing: Check init container logs specifically with container parameter
    • CreateContainerConfigError: Missing ConfigMap/Secret references

High Latency Investigation

  1. Use prom_instant_query with: rate(http_request_duration_seconds_sum[5m]) / rate(http_request_duration_seconds_count[5m])
  2. Check upstream dependencies with k8s_get_services and endpoint health
  3. Look for resource saturation: k8s_top_pods — pods at CPU limit will be throttled
  4. Check for recent deployments: k8s_rollout_status
  5. Check for noisy neighbors on the same node: k8s_top_nodes

Memory Leak Detection

  1. Use prom_range_query for container_memory_working_set_bytes over 24h
  2. Look for monotonically increasing memory without plateaus
  3. Check OOMKilled events: k8s_get_events with type=Warning
  4. Check container restart counts with k8s_get_pods
  5. Compare requested vs actual memory in k8s_describe_pod

Deployment Rollout Issues

  1. Use k8s_rollout_status to check progress
  2. Common issues:
    • ProgressDeadlineExceeded: New pods failing to start — check pod events
    • Insufficient replicas: Check resource quotas and node capacity
    • Readiness probe failing: Application not healthy — check logs and probe config
  3. Use k8s_rollback_deployment if the new version is broken

Node Issues

  1. Use k8s_get_nodes to check node status
  2. Use k8s_describe_node to check conditions:
    • MemoryPressure: Node running out of memory
    • DiskPressure: Node disk is full
    • PIDPressure: Too many processes
  3. Use k8s_top_nodes to see actual resource usage
  4. If a node is problematic, use k8s_cordon_node to prevent new scheduling

Read the full file on GitHub · 58 lines

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 · 58 lines · 0 tokens per session scan A 314d31262cab

Subscribe to this mod's changes

k8s-troubleshoot is a skill published in the GitHub repository batu-sonmez/infraclaude (0 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 655 tokens. A static security scan graded it A with 0 findings. 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

hermes-s6-container-supervision

Modify or debug s6 services in the Hermes Docker image.

NousResearch/hermes-agent · 20 tokens

smoke-test

Health smoke tests + auto-fix for gbrain installs (and OpenClaw services when present). Run after machine/container restarts or whenever something seems broken. Tests critical services, auto-fixes bounded local issues, and reports worker topology without starting daemons. Extensible via user-defined test scripts in…

garrytan/gbrain · 79 tokens

competition-container-runtime

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for live container runtime analysis, mounted secrets, sidecars, namespaces, init containers, entrypoint drift, and route-to-container resolution. Use when the user asks why a live container differs from manifests, where a mounted secret is…

zhaoxuya520/reverse-skill · 109 tokens

meta-home-it-rescue

Use this meta-skill instead of answering directly when the user needs help with home, small-team, laptop, browser, printer, Docker, Git, network, UI, or deployment troubleshooting that benefits from multi-skill orchestration across symptom intake, environment capture, web lookup, and repair planning.

opensquilla/opensquilla · 65 tokens

debugging-local-replay

Debugs why session recordings aren't appearing in the local dev environment. Use when a developer reports that local replay ingestion isn't working, recordings aren't showing up despite /s calls, or the replay pipeline seems broken after hogli start. Covers the full local pipeline: SDK capture, Caddy proxy…

PostHog/posthog-foss · 108 tokens

docker-debug

Debug Kurtosis running on local Docker. Inspect engine, API container, and service logs. Diagnose container crashes, port conflicts, and networking issues. Use when kurtosis commands fail or services aren't reachable on Docker.

kurtosis-tech/kurtosis · 45 tokens