Karpenter autoscaling eks

135 views Asked by At

How to ensure Karpenter spin up instances equally in all availability zones?

Used the below code, but it will not spin up pods in all availability zone's at the same time.Rather it picks random availability zone for provisioning new nodes.

- key: topology.kubernetes.io/zone
      operator: In
      values: ["us-east-2a", "us-east-2b", "us-east-2c"]
1

There are 1 answers

0
Manish Joshi On

You can achieve this using Pod topology spread constraints in your pod spec.

The three supported topologyKey values that Karpenter supports are:

topology.kubernetes.io/zone
kubernetes.io/hostname
karpenter.sh/capacity-type

Thanks, Manish