Interview Prep/Kubernetes/Autoscaling, Capacity & Cost

How do you configure Karpenter NodePools for production?

IntermediateProductionAutoscaling, Capacity & Cost
Answer

Define NodePool requirements (instance categories, generations, karpenter.sh/capacity-type of spot and on-demand, architectures), limits for total CPU/memory, disruption with consolidationPolicy: WhenEmptyOrUnderutilized, budgets restricting disruption windows, and expireAfter for node refresh. Use separate NodePools for system, general and GPU/batch, each with taints.

disruption:
  consolidationPolicy: WhenEmptyOrUnderutilized
  budgets: [{ nodes: "10%" }]
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Autoscaling, Capacity & Cost