Skip to main content
InterviewHubPRO
Section Overview
Q34

Question 34 of 50

Part 3: Kubernetes Infrastructure as Code & GitOps (31 - 42)

68%
Terraform & IaC (50 Qs)•Part 3: Kubernetes Infrastructure as Code & GitOps (31 - 42)

Autoscaling in Kubernetes: HPA vs. VPA vs. Karpenter.

senior LevelMost AskedKubernetes

In Simple Words:

  1. HPA (Horizontal Pod Autoscaler): Adds or removes pod replicas based on CPU, memory, or custom metrics (e.g. queue depth).
  2. VPA (Vertical Pod Autoscaler): Adjusts CPU and memory requests/limits of existing containers over time.
  3. Karpenter: High-speed node auto-provisioner. Watches for unschedulable pending pods and launches right-sized EC2 instances directly via AWS APIs in under 60 seconds, bypassing slow ASG scaling groups.