Interview Prep/Kubernetes/Resources, autoscaling and scheduling

Why choose Karpenter over Cluster Autoscaler and what must you configure?

AdvancedScenarioResources, autoscaling and scheduling
Answer

Situation read → Node costs are high and scale-up takes minutes with fixed instance types.

What I'd do →

  1. Install Karpenter with IAM roles and an interruption queue
  2. Define a NodePool with requirements (capacity types spot and on-demand, instance families, zones) and limits
  3. Define an EC2NodeClass for AMI, subnets and security groups
  4. Set disruption.consolidationPolicy and budgets
  5. Observe with kubectl get nodeclaims

Why → Karpenter provisions right-sized instances directly for pending pods and consolidates underused ones.

Interview tip → Say you set NodePool limits to cap runaway cost.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, autoscaling and scheduling