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%" }]
More on Autoscaling, Capacity & Cost
How do you right-size requests and limits?BeginnerWhy does HPA need accurate CPU requests?BeginnerWhat are Spot instances good for on Kubernetes?BeginnerHow do you reduce Kubernetes cost quickly?BeginnerWhat is metrics-server and what does it not do?BeginnerWhat is a good default for the node size and why?Beginner