I am running an EKS cluster with several node groups and I am trying to find a way to remove a specific worker node (EC2 machine) from one of the node group.
I have drained and taint the node. however, I cannot find a way to remove it specifically from the node group.
with eksctl
, I can only specify the desired number of nodes, but I do not know if it will intelligently remove the tainted node for me, or it will randomly remove one in specified node group.
eksctl scale nodegroup --cluster=prod --nodes=8 --name=worker
If this is not possible, Any idea on how to safely reduce number of worker node?
Thank you