/devops-skills:autoscalingfrom devops-skills
Covers scaling Kubernetes workloads and nodes with HPA, VPA, cluster autoscaler, custom/external metrics, and stabilization windows. Use when configuring HPA, choosing between HPA and VPA, debugging flapping autoscaling, or sizing cluster autoscaler.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Autoscaling in Kubernetes is a control loop stacked on a control loop: the HPA watches a metric and adjusts replica count, the scheduler places those replicas, and the cluster autoscaler watches for unschedulable pods and adds nodes. Every layer depends on the one below reporting truthfully — an HPA scaling on a metric that doesn't reflect real load, or replicas whose requests don't reflect real usage, produces scaling decisions that look active but don't fix anything.
Autoscaling amplifies whatever signal you point it at — a good signal gives you elastic capacity, a bad one gives you expensive noise. Get requests right first; every autoscaler downstream is only as accurate as the numbers it's reading.
CPU utilization is the default HPA metric because it's always available, not because it's usually the right one. A queue-processing service saturates on queue depth; an API saturates on request latency or in-flight requests; a memory-bound service doesn't reflect load in CPU at all. Scaling on the wrong metric means the HPA reacts late or not at all to the thing that's actually hurting users.
autoscaling/v2 resource metrics) work when the workload's bottleneck genuinely
is CPU or memory — verify this, don't assume it.Done when: the HPA's target metric has been checked against real saturation data, not chosen by default.
HPA changes replica count; VPA changes each replica's requests/limits. Pointed at the same resource dimension on the same workload, they fight — VPA resizing a pod's CPU request changes the value HPA's percentage target is computed against, producing scaling decisions neither system intended.
Off/recommend mode and apply its suggestions manually on a schedule.Done when: no workload has both HPA and VPA actively adjusting the same resource dimension simultaneously.
Reactive scaling without dampening thrashes: a load spike triggers scale-up, the spike passes, replicas scale back down, then the next spike scales up again — each transition has cost (new pod startup time, connection draining) that adds latency and instability for users riding through it.
behavior:
scaleDown:
stabilizationWindowSeconds: 300 # require 5 min of sustained low load before scaling down
scaleUp:
stabilizationWindowSeconds: 0 # scale up fast, scale down cautiously
Asymmetric stabilization — fast up, slow down — is usually the right default: the cost of scaling up a beat late is worse than the cost of carrying a few extra replicas for a few more minutes.
Done when: replica count graphed over a real traffic day shows smooth transitions, not a sawtooth.
HPA can request more replicas than the cluster has room for; the cluster autoscaler only adds nodes
in response to pods that are actually Pending due to insufficient resources — it does not look
ahead. That gap between "HPA wants 10 more replicas" and "nodes exist to run them" is exactly where
users experience the worst of an unhandled spike.
cost-optimization and rightsizing.Done when: you've confirmed, under a load test, that the cluster autoscaler actually adds capacity fast enough for the workload's real spike shape.
Every HPA percentage target and every cluster autoscaler bin-packing decision is computed relative to the pod's requests. If requests were copy-pasted from another service or set once years ago, "scale at 70% CPU" is scaling at 70% of a fictional number — the autoscaler will be confidently wrong.
Done when: the requests underneath every autoscaled workload have been validated against observed usage within the last release cycle, not inherited indefinitely.
State which metric each HPA scales on and why it was chosen over CPU-by-default, whether HPA and VPA overlap on any workload, the stabilization windows set, and whether cluster autoscaler capacity was validated against a real spike. Call out any workload still autoscaling against unverified or stale requests — naming that gap is more useful than reporting the scaling policy as tuned.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.