Agent skill
check-pod-resources
Check resource usage (CPU, memory) for pods. Used to identify pods consuming excessive resources. Keywords: pod resources, cpu, memory, consumption, metrics, resource usage, top pods.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/check-pod-resources
Metadata
Additional technical details for this skill
- domain
- k8s
- category
- diagnostic
- confidence
- 0.95
- mcp servers
-
[ "kubernetes-mcp-server" ] - requires approval
- NO
SKILL.md
Check Pod Resource Usage
Preconditions
Before applying this skill, verify:
- Metrics server is available
- Need to understand pod resource consumption
Actions
1. Get Resource Usage for Pods
Retrieve CPU and memory usage metrics for pods in the namespace.
mcp_tool: kubernetes-mcp-server/pods_top
params:
namespace: $namespace
timeout: 30s
Success Criteria
The skill succeeds when:
- Pod resource metrics retrieved successfully
- High resource consumers identified if present
Failure Handling
If metrics unavailable:
- Check if metrics-server is deployed
- Fall back to resource requests/limits from pod spec
Examples
Input Context:
{
"namespace": "production",
"reason": "investigating high memory usage"
}
Expected Outcome: Pod metrics retrieved showing CPU and memory usage for each pod, with any pods consuming excessive resources clearly identified.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?