supraj.dev
Kubernetes

Horizontal Pod Autoscaler

How does Kubernetes add copies of my app when traffic spikes, and remove them later?

28 s loop7 sentencesSilent, read alongScene: Journey
Read the story, sentence by sentence 7 sentences

What you'll be able to say

  1. The Horizontal Pod Autoscaler (HPA) changes a Deployment’s replica count, adding Pods when load rises and removing them when it falls.
  2. It checks every 15 seconds by default, using CPU from Metrics Server or custom metrics you provide.
  3. You set a target, like 50% of each Pod’s CPU request, plus min and max replicas; scale-down uses a 5-minute stabilization window by default.