- Home
- Skills
- DevOps & Cloud
- KubeDoctor
Works with the AI Agents you already use
KubeDoctor
by Rahul Dan
AI-powered Kubernetes diagnostic assistant for root-cause analysis of pods, services, and cluster health.
Free
KubeDoctor
Example session with this skill installed
My pods in the 'prod-api' namespace are crashing. Can you figure out why?
- Read your context and instructions
- Compiled the kubedoctor
I have scanned the prod-api namespace and identified two pods in a failing state. I ran detect_crashloops and doctor to analyze the root cause.
Kubernetes Diagnostic Report: prod-api
| Resource | Status | Error Pattern | Root Cause |
|---|---|---|---|
api-v2-7b9f8-x4j2 | CrashLoopBackOff | Exit Code 137 | OOMKilled: The container exceeded its memory limit of 512Mi. |
auth-svc-5d4c3-r9s1 | Pending | FailedScheduling | Insufficient memory: No nodes have 2Gi of allocatable memory available. |
gateway-ingress | Healthy | N/A | Ingress rules are correctly mapping to backend services. |
Detailed Analysis
- Pod
api-v2-7b9f8-x4j2: Thedoctortool retrieved the last 50 lines of logs, showing ajava.lang.OutOfMemoryErrorjust before the SIGKILL (Exit Code 137). - Pod
auth-svc-5d4c3-r9s1: Events indicate the scheduler cannot find a node that satisfies the2Gimemory request. Current nodes are at >90% utilization.
Next steps
- Increase the memory limit for the
api-v2deployment to at least 1Gi. - Check if any pods in the cluster can be evicted or scale the node group to handle the
auth-svcmemory requirements. - Run
node_healthto see if specific nodes are under sustained disk or CPU pressure.
Connects securely to your tools. The creator never sees your data.
About this skill
Debugging Kubernetes workloads manually involves jumping between kubectl get, describe, logs, and events, often losing track of the correlation between pod states and container exit codes. This skill provides an automated diagnostic layer that inspects live cluster state to deliver evidence-based root-cause analysis for failing resources.
What it does
- Cluster Triage scans nodes for readiness, memory pressure, and disk pressure across the entire environment.
- Deep Pod Diagnostics correlates container lifecycle phases, exit codes, and recent log streams into a single health report.
- Error Detection automatically identifies pods stuck in
CrashLoopBackOff,ImagePullBackOff, orPendingstates. - Network Validation inspects Service selectors, endpoint readiness, and Ingress routing rules to find connectivity gaps.
- Resource Correlation matches Kubernetes events to specific workload failures to find underlying scheduling or auth issues.
How it works
- Run
cluster_healthornamespace_health_scanto locate problematic resources in the environment. - Invoke
doctoron specific pods to retrieve a combined view of logs, events, and container exit states. - Use specialized detection tools like
detect_crashloopsordetect_pending_podsto filter for specific failure patterns. - Call
diagnose_serviceordiagnose_ingressto verify the networking path from the gateway to the pod labels.
Frameworks & tools
Built for Kubernetes environments using the Model Context Protocol. Works with standard kubectl logic to interface with clusters, deployments, services, and ingress controllers.
Why this beats prompting it yourself
Generic prompts struggle to systematically link a container's exit code 137 to node memory pressure or a Pending pod to untolerated taints. This skill enforces a structured diagnostic workflow that ensures logs, events, and lifecycle data are correlated before offering a recommendation.
Use cases
- Debugging why a production deployment is stuck in a restart loop after a new image rollout.
- Investigating why a Service has zero ready endpoints despite pods appearing to be running.
- Auditing namespace health to find pods failing due to missing
imagePullSecretsor registry auth. - Identifying resource exhaustion by checking node pressure conditions and scheduling constraints.
Known limitations
This skill performs read-only operations and cannot delete pods, scale deployments, or edit YAML manifests. It requires an active Kubernetes context with sufficient RBAC permissions to list and describe resources.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
Permissions
What's inside
Creator
Rahul Dan
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.