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.

Stars 163
Forks 31

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.

yaml
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:

  1. Check if metrics-server is deployed
  2. Fall back to resource requests/limits from pod spec

Examples

Input Context:

json
{
  "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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results