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 →
- Install Karpenter with IAM roles and an interruption queue
- Define a
NodePoolwith requirements (capacity types spot and on-demand, instance families, zones) and limits - Define an
EC2NodeClassfor AMI, subnets and security groups - Set
disruption.consolidationPolicyand budgets - 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.
More on Resources, autoscaling and scheduling
How do you choose requests and limits for a new service?BeginnerPods are Pending with `0/6 nodes are available: 6 Insufficient cpu`. What do you do?IntermediateExplain QoS classes and which pods get evicted first.IntermediateCPU limits cause latency spikes though average usage is low. Why and what is the fix?IntermediateHow do you configure an HPA on CPU?BeginnerHPA shows `<unknown>/70%` for CPU. What do you do?Intermediate