rohitg00/kubectl-mcp-server/k8s-troubleshoot
Claude Code and agent skill by rohitg00/kubectl-mcp-server
- community
Checking that the SKILL.md file is still in the repository.
Debug Kubernetes pods, nodes, and workloads. Use when pods are failing, containers crash, nodes are unhealthy, or users mention debugging, troubleshooting, or diagnosing Kubernetes issues.
Install
npx vskill@latest install rohitg00/kubectl-mcp-server/k8s-troubleshootSKILL.md
Kubernetes Troubleshooting
Expert debugging and diagnostics for Kubernetes clusters using kubectl-mcp-server tools.
Requires thecilium,diagnostics,istio,policy,securitytoolsets: start kubectl-mcp-server with--toolsets default,cilium,diagnostics,istio,policy,security(orMCP_TOOLSETS=default,cilium,diagnostics,istio,policy,security). For deep work, the project-maintained MCP servers may fit better: Kyverno: https://github.com/nirmata/kyverno-mcp.
When to Apply
Use this skill when:
- User mentions: "debug", "troubleshoot", "diagnose", "failing", "crash", "not starting", "broken"
- Pod states: Pending, CrashLoopBackOff, ImagePullBackOff, OOMKilled, Error, Unknown
- Node issues: NotReady, MemoryPressure, DiskPressure, NetworkUnavailable, PIDPressure
- Keywords: "logs", "events", "describe", "why isn't working", "stuck", "not responding"
Priority Rules
| Priority | Rule | Impact | Tools | |
|---|---|---|---|---|
| 1 | Check pod status first | CRITICAL | kubectl_get, kubectl_describe | |
| 2 | View recent events | CRITICAL | kubectl_get | |
| 3 | Inspect logs (including previous) | HIGH | kubectl_logs | |
| 4 | Check resource metrics | HIGH | kubectl_top | |
| 5 | Verify endpoints | MEDIUM | kubectl_get | |
| 6 | Review network policies | MEDIUM | analyze_network_policies | |
| 7 | Examine node status | LOW | kubectl_get, kubectl_describe |
Quick Reference
| Symptom | First Tool | Next Steps | |
|---|---|---|---|
| Pod Pending | kubectl_describe | Check events, node capacity, resource requests | |
| CrashLoopBackOff | kubectl_logs(pod_name, previous=True) | Check exit code, resources, liveness probes | |
| ImagePullBackOff | kubectl_describe | Verify image name, registry auth, network | |
| OOMKilled | kubectl_top | Increase memory limits, check for memory leaks | |
| ContainerCreating | kubectl_describe | Check PVC binding, secrets, configmaps | |
| Terminating (stuck) | kubectl_describe | Check finalizers, PDBs, preStop hooks |
Diagnostic Workflows
Pod Not Starting
Common Pod States
| State | Likely Cause | Tools to Use | |
|---|---|---|---|
| Pending | Scheduling issues | kubectl_describe, kubectl_get, kubectl_get | |
| ImagePullBackOff | Registry/auth | kubectl_describe, check image name | |
| CrashLoopBackOff | App crash | kubectl_logs(pod_name, previous=True) | |
| OOMKilled | Memory limit | kubectl_top, adjust limits | |
| ContainerCreating | Volume/network | kubectl_describe, kubectl_get |
Node Issues
Deep Debugging Workflows
CrashLoopBackOff Investigation
Networking Issues
Storage Problems
DNS Resolution
Multi-Cluster Debugging
All tools support context parameter for targeting different clusters:
Diagnostic Scripts
For comprehensive diagnostics, run the bundled scripts:
- See scripts/diagnose-pod.py for automated pod analysis
- See scripts/health-check.sh for cluster health checks
Decision Tree
See references/DECISION-TREE.md for visual troubleshooting flowcharts.
Common Errors Reference
See references/COMMON-ERRORS.md for error message explanations and fixes.
Related Tools
Core Diagnostics
kubectl_get,kubectl_describe,kubectl_logs,kubectl_topkubectl_get,kubectl_get,kubectl_describekubectl_top,compare_namespaces
Advanced (Ecosystem)
- Cilium:
cilium_list_endpoints,get_hubble_flows - Istio:
istio_proxy_status,istio_analyze
Related Skills
- k8s-diagnostics - Metrics and health checks
- k8s-incident - Emergency runbooks
- k8s-networking - Network troubleshooting
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingkubernetes-skills/claude/k8s-troubleshoot/SKILL.md
Popularity
- Repository stars
- 853
- Repository forks
- 166
- Repository npm downloads, 7 days
- 360
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rohitg00/kubectl-mcp-server/k8s-troubleshoot)