I have karpenter deployed in eks and for karpenter provisioner I have consolidation enabled true
consolidation:
enabled: true
which means for any underutilized node, the workload (pods) will be deployed in the existing nodes. but during this process I have noticed karpenter terminates the existing pod and then creates a new pod.
I am looking for a soluction where the new pod will the created in the existing node first and then terminate the pod in the underutilized node then terminate the node.
Configure Pod Disruption Budgets, https://kubernetes.io/docs/tasks/run-application/configure-pdb/