Kubernetes_Hpa
Automatically scales Kubernetes deployments based on resource utilization using Horizontal Pod Autoscaling (HPA).
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add kubernetes_hpa npx -- -y @trustedskills/kubernetes_hpa
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"kubernetes_hpa": {
"command": "npx",
"args": [
"-y",
"@trustedskills/kubernetes_hpa"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to manage Kubernetes Horizontal Pod Autoscalers (HPAs). It can automatically scale the number of pods in a deployment, replication controller, or replica set based on observed CPU utilization or other metrics. This ensures applications have sufficient resources while optimizing resource usage and cost.
When to use it
- Responding to traffic spikes: Automatically increase pod count during periods of high demand.
- Optimizing cloud costs: Reduce the number of pods when load is low, minimizing infrastructure expenses.
- Maintaining application performance: Ensure consistent response times even under varying workloads by dynamically adjusting resources.
- Automating scaling decisions: Eliminate manual intervention in resource allocation and scaling processes.
Key capabilities
- Create HPAs based on CPU utilization.
- Scale deployments, replication controllers, or replica sets.
- Automatically adjust the number of pods.
Example prompts
- "Create an HPA for my 'web-app' deployment that targets 70% CPU utilization."
- "Scale down the number of pods in my 'database' replica set when CPU usage is consistently low."
- “What’s the current target CPU utilization for my ‘api’ deployment?”
Tips & gotchas
- Requires access to a Kubernetes cluster and appropriate permissions.
- Ensure metrics server is properly configured within your Kubernetes cluster for accurate resource monitoring.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.