Closed Sudiksha closed 5 years ago
I've based my PR #15 on your idea, @Sudiksha - hope this works for you?
@egeland I have incorporated your review comments in this branch today itself. Sorry, couldnt make it up before due to multiple other items.
And your new PR also works for us. Hope to see it merged sooner and a new release version.
After an instance is terminated, it takes time for ASG to identify this and launch a new replacement instance. To cater to this time window, this PR makes sure that before triggering
kubectl drain
on the instance, the instance is detached from that ASG. ASG will itself launch the replacement instance (this availability chances are now more after the release of https://aws.amazon.com/blogs/aws/new-ec2-auto-scaling-groups-with-multiple-instance-types-purchase-options/)Changes: