rohitg00/kubectl-mcp-server/k8s-autoscaling
Claude Code and agent skill by rohitg00/kubectl-mcp-server
- community
Checking that the SKILL.md file is still in the repository.
Configure Kubernetes autoscaling with HPA, VPA, and KEDA. Use for horizontal/vertical pod autoscaling, event-driven scaling, and capacity management.
Install
npx vskill@latest install rohitg00/kubectl-mcp-server/k8s-autoscalingSKILL.md
Kubernetes Autoscaling
Comprehensive autoscaling using HPA, VPA, and KEDA with kubectl-mcp-server tools.
Requires thecost,kedatoolsets: start kubectl-mcp-server with--toolsets default,cost,keda(orMCP_TOOLSETS=default,cost,keda).
When to Apply
Use this skill when:
- User mentions: "HPA", "VPA", "KEDA", "autoscale", "scale to zero"
- Operations: configuring autoscaling, checking scaling status
- Keywords: "scale automatically", "event-driven", "right-size"
Priority Rules
| Priority | Rule | Impact | Tools | |
|---|---|---|---|---|
| 1 | Verify metrics-server for HPA | CRITICAL | kubectl_top | |
| 2 | Set resource requests before HPA | CRITICAL | kubectl_describe | |
| 3 | Use KEDA for scale-to-zero | HIGH | keda_scaledobjects_list | |
| 4 | Check VPA recommendations | MEDIUM | get_resource_recommendations |
Quick Reference
| Task | Tool | Example | |
|---|---|---|---|
| List KEDA ScaledObjects | keda_scaledobjects_list | keda_scaledobjects_list(namespace) | |
| Get ScaledObject | keda_scaledobject_get | keda_scaledobject_get(name, namespace) | |
| List ScaledJobs | keda_scaledjobs_list | keda_scaledjobs_list(namespace) | |
| Check KEDA | detect_ecosystem | detect_ecosystem() |
HPA (Horizontal Pod Autoscaler)
Basic CPU-based scaling:
Apply and verify:
VPA (Vertical Pod Autoscaler)
Right-size resource requests:
KEDA (Event-Driven Autoscaling)
Detect KEDA Installation
List ScaledObjects
List ScaledJobs
Trigger Authentication
KEDA-Managed HPAs
See KEDA-TRIGGERS.md for trigger configurations.
Common KEDA Triggers
Queue-Based Scaling (AWS SQS)
Cron-Based Scaling
Prometheus Metrics
Scaling Strategies
| Strategy | Tool | Use Case | |
|---|---|---|---|
| CPU/Memory | HPA | Steady traffic patterns | |
| Custom metrics | HPA v2 | Business metrics | |
| Event-driven | KEDA | Queue processing, cron | |
| Vertical | VPA | Right-size requests | |
| Scale to zero | KEDA | Cost savings, idle workloads |
Cost-Optimized Autoscaling
Scale to Zero with KEDA
Reduce costs for idle workloads:
Right-Size with VPA
Get recommendations and apply:
Troubleshooting
HPA Not Scaling
KEDA Not Triggering
Common Issues
| Symptom | Check | Resolution | |
|---|---|---|---|
| HPA unknown | Metrics server | Install metrics-server | |
| KEDA no scale | Trigger auth | Check TriggerAuthentication | |
| VPA not updating | Update mode | Set updateMode: Auto | |
| Scale down slow | Stabilization | Adjust stabilizationWindowSeconds |
Best Practices
- Always Set Resource Requests - HPA requires requests to calculate utilization
- Use Multiple Metrics - Combine CPU + custom metrics for accuracy
- Stabilization Windows - Prevent flapping with scaleDown stabilization
- Scale to Zero Carefully - Consider cold start time
Related Skills
- k8s-cost - Cost optimization
- k8s-troubleshoot - Debug scaling issues
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-autoscaling/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-autoscaling)