infra-kubernetes-autoscaling-review

Review Kubernetes HPA, VPA, KEDA, and Cluster Autoscaler configurations for scaling stability.

14|1|Updated May 5, 2026
One-click install
npx skills add https://github.com/ivanshamaev/de-agent-skills --skill infra-kubernetes-autoscaling-review
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: infra-kubernetes-autoscaling-review
Source: https://github.com/ivanshamaev/de-agent-skills/tree/main/group_skills/infra_dataops_group_skills/infra_kubernetes_autoscaling_review
Command: npx skills add https://github.com/ivanshamaev/de-agent-skills --skill infra-kubernetes-autoscaling-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you review and tune Kubernetes autoscaling so workloads scale reliably under real demand without instability or wasted cost.

Core Features & Use Cases

  • HPA tuning and diagnostics: Validate min/max replica bounds, metric types (CPU/memory/custom/external), stabilizationWindowSeconds, and ensure resource requests are set to make utilization-based scaling work.
  • HPA vs VPA vs KEDA decisioning: Choose horizontal (rate-based), vertical (unknown resource needs), or event-driven (queue/event backlog) autoscaling for the right workload pattern.
  • Cluster Autoscaler and availability safeguards: Configure scale-down delays and utilization thresholds, use Pod Disruption Budgets to prevent mass disruption, and optimize behavior for spot nodes.
  • Use Case: If an orders API either never scales down or flaps during traffic spikes, use this Skill to diagnose metrics availability, readiness gating, and selectPolicy/behavior settings, then decide whether to switch to KEDA for Kafka lag-based scaling.

Quick Start

Tell the AI: "Review our HPA/VPA/KEDA strategy for the orders-api and orders-consumer, then recommend concrete Kubernetes settings to stop flapping and enable correct scale-down while keeping SLOs."

Frequently Asked Questions about infra-kubernetes-autoscaling-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my Kubernetes HPA never scale down or continuously flap during traffic spikes?▼

Kubernetes HPA flapping usually stems from missing metrics-server data, absent resource requests, or unsafe stabilizationWindowSeconds settings. Reviewing your HPA behavior policies, selectPolicy, and readiness gates helps prevent rapid replica changes and enables correct scale-down while maintaining SLOs.

How do I choose between HPA, VPA, and KEDA for Kubernetes autoscaling?▼

Choose HPA for rate-based CPU/memory scaling, VPA for workloads with unknown resource needs, and KEDA for event-driven scaling based on queue or event backlogs like Kafka consumer lag. Selecting the right pattern prevents non-scaling and cost inefficiencies across varying workload demands.

How do I configure KEDA to scale Kubernetes consumers based on Kafka lag?▼

To scale Kafka consumers with KEDA, you configure event-driven autoscaling using external metrics tied to queue backlog. This approach targets event-driven workloads specifically, preventing non-scaling issues by scaling replicas directly in response to real-time consumer lag.

Do I need metrics-server and resource requests for HPA utilization-based scaling to work?▼

Yes, HPA utilization-based scaling requires correct metric plumbing via metrics-server and explicit resource requests set on your pods. Without these foundational elements, the HPA cannot accurately calculate utilization to trigger scaling for your production deployment workloads.

How can I prevent mass pod disruption when tuning Cluster Autoscaler for spot nodes?▼

To prevent mass disruption during Cluster Autoscaler scale-down events, you should configure Pod Disruption Budgets alongside scale-down delays and utilization thresholds. These availability safeguards protect workloads and optimize behavior specifically for spot node provisioning.

What causes pending pods when using the Kubernetes Cluster Autoscaler?▼

Pending pods occur when Cluster Autoscaler node provisioning behavior cannot keep up with scaling demands or is restricted by improper utilization thresholds. Reviewing scale-down delays and provisioning behavior ensures nodes are efficiently allocated for pending workloads without wasted cost.