Releases: TwiN/aws-eks-asg-rolling-update-handler
v0.0.11
- Added execution timeout
While upgrading EKS from 1.14 to 1.15, I ran into an issue where an in-flight request would hang, and thus the execution would never end. Restarting the pod fixed the issue, and while I'm not exactly sure why it happened, what I do know is that since there's no health check that the liveness probe can perform, adding a timeout to each execution and panicking on failure to respect that execution time limit is a safe way to either allow the pod to recover on its own, or if the issue keeps happening, then at least it will increase visibility.
v0.0.10
v0.0.9
v0.0.8
- Instances are now classified as outdated if their instance type is no longer part of MixedInstancePolicy's instance types overrides
The MixedInstancePolicy available through the usage of a Launch Template is at the ASG level, meaning that if you modify the instance type overrides to allow the usage of multiple instance types on a single ASG, no new launch template version would be created. This update verifies if the instance's instance type is part of the overrides, and if it isn't, then it means that the ASG has been updated, which means that it's outdated.
v0.0.7
v0.0.6
v0.0.5
- Pods from DaemonSets are now filtered out when calculating resources #1
- Make sure that the ASG doesn't get increased if the node has already been drained or scheduled for termination. Technically, if the node has been drained, this should never cause any problems, but it doesn't hurt to be careful.
v0.0.4
v0.0.3
- Rolling update now waits for the number of instances on the ASG to be equal or above the desired capacity to continue the process. This prevents increasing the desired capacity multiple times before an instance has enough time to be registered in the ASG.
- Added logs for the draining operation
- Improved test coverage
- Refactored code