Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Kubernetes Autoscaling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-kubernetes-autoscaling)
---
description: Right-size Kubernetes workloads and autoscaling safely using VPA profiles, HPA/KEDA signals, node consolidation, and PDBs
profile: standard
tags: kubernetes, finops, cost, performance
---
# Kubernetes autoscaling
Use when configuring HPA, VPA, KEDA, Cluster Autoscaler, or Karpenter for Kubernetes cost efficiency without causing outages.
## Request accuracy and scaling
- Base `resources.requests` on measured p95 steady usage (via VPA recommendation metrics) rather than guesses—over-requested pods waste node capacity while under-requested memory triggers OOMKills.
- Avoid setting tight `cpu.limits` on latency-sensitive services blindly (Linux CFS throttling hurts p99 latency even below 100% node load); reserve `memory.limits == memory.requests` for predictable eviction guarantees.
- Scale queue workers and event consumers with **KEDA** (`queue depth` / `lag`) down to zero when safe rather than keeping idle pods running off static CPU percentages.
## Node consolidation safety
- Configure `PodDisruptionBudget` (`minAvailable` / `maxUnavailable`) and graceful `preStop` + termination periods before enabling aggressive Karpenter consolidation or spot node replacement so rolling evictions never drop in-flight requests.
- Spread critical replicas across AZs while matching batch jobs cleanly to consolidated/spot node pools via taints and tolerations.
## Verify
Load-test scale-out latency, verify HPA/KEDA cooldown stability without flapping, and run a controlled node drain to verify zero HTTP 5xx drops.