⚡ Autoscaling

Scale intelligently: HPA, VPA, Cluster Autoscaler, KEDA event-driven scaling, GPU metrics autoscaling, custom metrics, and cost optimization strategies.

33 recipes 🟢 2 beginner 🟡 20 intermediate 🔴 11 advanced
intermediate ⏱ 20 minutes

What's New in KEDA v2.21.0 - Breaking Changes and Upgrade Guide

KEDA 2.21.0 fixes CVE-2026-77524, changes Azure Pipelines and Temporal scalers, and adds new scalers. Upgrade steps included.

kedaautoscalingsecurityhelm
intermediate ⏱ 15 minutes

Karpenter v1.15.1: What's New and How to Upgrade

Karpenter v1.15.1 is a chores-only cherrypick release; see what changed and how to safely upgrade from v1.14.2.

karpenterautoscalingnode-provisioninghelm
intermediate ⏱ 15 minutes

Karpenter v1.14.2: What's New (Patch Release Notes & Upgrade Guide)

Karpenter v1.14.2 patch release fixes NodeRepair label sync and capacity buffer workload watching. Upgrade steps and verification included.

karpenterautoscalingnode-autoscalingpatch-release
advanced ⏱ 15 minutes

Kubernetes HPA Custom Metrics Prometheus Adapter

Configure Kubernetes Horizontal Pod Autoscaler with custom Prometheus metrics via the Prometheus Adapter. Scale on request latency, queue depth, GPU

hpaautoscalingprometheuscustom-metrics
intermediate ⏱ 15 minutes

Kubernetes Vertical Pod Autoscaler (VPA) Guide

Install and configure Kubernetes VPA: Off, Initial, Recreate and in-place modes, min/max bounds, reading recommendations, and VPA with HPA.

vpavertical-pod-autoscalerautoscalingresource-management
beginner ⏱ 15 minutes

Goldilocks VPA Dashboard for Resource Optimization

Deploy Goldilocks to visualize VPA recommendations across all workloads and identify over-provisioned or under-provisioned containers with actionable

goldilocksvpacost-optimizationresource-management
intermediate ⏱ 10 minutes

K8s Horizontal Scaling: Manual and Auto

Scale Kubernetes workloads horizontally with kubectl scale, HPA, and KEDA. Covers replica management and event-driven scaling strategies.

autoscalinghpascalingkeda
intermediate ⏱ 10 minutes

K8s HPA: Autoscale on CPU and Memory

Configure Kubernetes HorizontalPodAutoscaler to scale on CPU and memory utilization. Target utilization, minReplicas, maxReplicas, and scaling behavior.

hpaautoscalingcpumemory
intermediate ⏱ 20 minutes

Kubernetes Right-Sizing and Cost Optimization

Optimize Kubernetes resource allocation with right-sizing, VPA recommendations, bin packing, request-to-limit ratios, and cost reduction best practices.

resourcesoptimizationcostvpa
beginner ⏱ 10 minutes

Install VPA with hack/vpa-up.sh Script

Install Kubernetes Vertical Pod Autoscaler using hack/vpa-up.sh from the official repository. VPA components, prerequisites, and troubleshooting guide.

vpaautoscalinginstallationvertical-pod-autoscaler
intermediate ⏱ 15 minutes

HPA Prometheus Custom Metrics K8s

Configure HPA with custom Prometheus metrics using prometheus-adapter on Kubernetes. Custom and external metrics, query mapping, and scaling on business KPIs.

hpaprometheuscustom-metricsadapter
intermediate ⏱ 15 minutes

KEDA Scalers Guide for Kubernetes

Configure KEDA scalers for event-driven autoscaling on Kubernetes. Covers Kafka, RabbitMQ, Prometheus, and cron trigger configuration.

kedascalersevent-drivenkafka
intermediate ⏱ 15 minutes

VPA Recommender Setup Kubernetes

Configure the VPA Recommender for Kubernetes resource right-sizing. Off mode recommendations, memory-only mode, and interpreting VPA suggestions.

vparecommenderright-sizingresources
advanced ⏱ 20 minutes

Custom Metrics with Prometheus Adapter

Expose application metrics to Kubernetes HPA via Prometheus Adapter. Configure custom.metrics.k8s.io for HTTP requests per second, queue depth.

prometheuscustom-metricshpaautoscaling
intermediate ⏱ 15 minutes

HPA Custom Metrics Scaling Guide

Scale Kubernetes workloads on custom Prometheus metrics with HPA. Prometheus Adapter, external metrics, and request-rate-based scaling for web services.

hpacustom-metricsprometheus-adapterautoscaling
intermediate ⏱ 20 minutes

KEDA: Event-Driven Autoscaling for Kubernetes

Install KEDA with Helm and scale on Kafka lag, RabbitMQ, Prometheus, cron or HTTP. ScaledObject, ScaledJob, TriggerAuthentication, scale-to-zero.

kedaautoscalingevent-drivenkafka
intermediate ⏱ 20 minutes

VPA Resource Right-Sizing Kubernetes

Use Vertical Pod Autoscaler to right-size Kubernetes resource requests and limits. Off mode for recommendations, Auto mode for live adjustment.

vpavertical-pod-autoscalerright-sizingresources
advanced ⏱ 15 minutes

HPA v2 Multiple Metrics Scaling Guide

Configure HorizontalPodAutoscaler v2 with CPU, memory, custom, and external metrics. Control scaling behavior with stabilization windows.

hpaautoscalingmetricscustom-metrics
intermediate ⏱ 15 minutes

Kubernetes Cluster Autoscaler: Setup and Tuning

Install and tune Kubernetes Cluster Autoscaler on EKS, GKE and AKS: scale-down flags, expanders, max-node-provision-time, GPU scale-to-zero.

cluster-autoscalerautoscalingnode-scalingeks
advanced ⏱ 20 minutes

HPA Behavior and Scaling Policies

Configure HPA scaling behavior with stabilization windows, scaling policies, and rate limiting. Fine-tune scale-up and scale-down speed.

hpaautoscalingscaling-policiesstabilization
intermediate ⏱ 10 minutes

HPA Container Resource Metrics

Configure HPA to scale based on individual container metrics instead of pod-level averages. Target specific containers in multi-container pods.

hpaautoscalingcontainer-metricsmulti-container
advanced ⏱ 20 minutes

Kubernetes HPA Custom Metrics with Prometheus

Configure Kubernetes HPA with custom Prometheus metrics. Prometheus Adapter setup, custom and external metrics, scaling on request latency, queue depth.

hpaautoscalingprometheuscustom-metrics
advanced ⏱ 25 minutes

Multidimensional Pod Autoscaler (MPA)

Configure Google's Multidimensional Pod Autoscaler to scale both horizontally and vertically simultaneously. Combines HPA and VPA logic in one controller.

autoscalingmpahpavpa
intermediate ⏱ 20 minutes

KEDA vs HPA: Event-Driven Autoscaling Explained

Compare KEDA and HPA for Kubernetes autoscaling. Scale on Kafka lag, Prometheus metrics, queue depth, cron, and custom events. KEDA vs HPA decision guide.

kedahpaevent-drivenautoscaling
intermediate ⏱ 35 minutes

K8s Capacity Planning for Enterprise Clusters

Right-size enterprise clusters with data-driven capacity planning. Forecast resource needs, optimize bin-packing, and plan for growth with metrics.

capacity-planningresource-optimizationcluster-sizingcost-management
advanced ⏱ 15 minutes

Advanced Cluster Autoscaler Config & Tuning

Fine-tune the Kubernetes Cluster Autoscaler with expanders, priority-based scaling, mixed instance policies, and GPU node pool autoscaling for production c.

cluster-autoscalernode-scalinggpumixed-instances
advanced ⏱ 15 minutes

Custom Metrics Autoscaling in Kubernetes

Scale Kubernetes pods on custom application metrics with Prometheus Adapter. Configure HPA with custom and external metrics beyond CPU and memory.

custom-metricsprometheus-adapterhpaautoscaling
advanced ⏱ 15 minutes

Virtual Kubelet for Serverless K8s Scaling

Deploy Virtual Kubelet to burst Kubernetes workloads to serverless backends like Azure ACI, AWS Fargate, and Hashicorp Nomad for infinite scaling.

virtual-kubeletserverlessburst-scalingfargate
advanced ⏱ 15 minutes

Karpenter Node Autoscaling on EKS (v1 API)

Install Karpenter v1 on EKS: NodePools, EC2NodeClass, spot fallback, consolidation, GPU pools, and how it compares to Cluster Autoscaler.

karpenterautoscalingnodesspot
intermediate ⏱ 30 minutes

K8s Resource Optimization Strategies

Kubernetes resource optimization strategies and best practices. Right-size pods with VPA, Goldilocks dashboards, and resource allocation techniques.

resourcesoptimizationvpagoldilocks
intermediate ⏱ 15 minutes

OpenClaw Resource Limits and Tuning

Size CPU, memory, and storage for OpenClaw on Kubernetes. Tuning profiles for light usage, browser automation, and production deployments.

openclawresource-limitstuningperformance
advanced ⏱ 15 minutes

OpenClaw Auto-Scaling with KEDA

Scale OpenClaw agents based on message queue depth using KEDA event-driven autoscaling for Discord, Telegram, and Slack.

openclawkedaautoscalingevent-driven
intermediate ⏱ 20 minutes

Kubernetes HPA: Set Max Replicas and Scale

Configure Kubernetes HPA (autoscaling/v2): averageUtilization, set or change maxReplicas, CPU, memory and custom metrics, and scaling behavior.

hpaautoscalingmetricscpu
Luca Berton Ansible Pilot Ansible by Example Open Empower K8s Recipes Terraform Pilot CopyPasteLearn ProteinLens