You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
We raised a case with AWS support team, and below is the problem statement:
We have AWS EKS production environment, and contains ~500 EKS worker nodes (1.15)., we observe that most of the nodes were more than 80 days old, with this 80+ days old, noticed degrading performance on pod deployments. So, we wanted to do instance refresh on EKS nodes where it should first cordon the node, wait for the pods to terminate gracefully then the node is terminated.
With above point, the AWS Support team gave reference to this github - "amazon-k9s-node-drainer". So, we are doing this POC on this "amazon-k8s-node-drainer", on "DEV" EKS environment, we observe that it works same manner as "instance refresh" without doing standard process like :
cordon the node
wait for all deployed pods to terminate
destroy the node
according to ASG, new node is added
So, wanted to check if there is a way to do this manner ? especially follow "standard process" before terminating the EKS nodes.
Thanks
HK
The text was updated successfully, but these errors were encountered:
We already followed, we were told by AWS support team stating that this "ASG MAX INSTANCE LIFETIME" is only for EC2, not intended for kubernetes based Worker nodes. We are looking for similar EKS kubernetes node drainer( cordon off the node if older than 15 days -> wait till all deployed pods is terminated -> terminate the node -> according to ASG for EKS node, the new node is added).
If this git repo doesnt support what we are looking for, let me know, i shall get back to the AWS support team and confirm this git repo doesnt follow.
The node drainer should still work if you set the max age: when the node is terminated it will generate the EC2 Instance-terminate Lifecycle Action event (you see can here in the CloudFormation where we subscribe to the event) and the lambda will be trigger. The only way it wouldn't work is if for some reason the Max Age parameter generates a different type of event but I see no reason why that would be the case and even if it were you could just change the CloudFormation I've linked to there.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello.,
We raised a case with AWS support team, and below is the problem statement:
With above point, the AWS Support team gave reference to this github - "amazon-k9s-node-drainer". So, we are doing this POC on this "amazon-k8s-node-drainer", on "DEV" EKS environment, we observe that it works same manner as "instance refresh" without doing standard process like :
So, wanted to check if there is a way to do this manner ? especially follow "standard process" before terminating the EKS nodes.
Thanks
HK
The text was updated successfully, but these errors were encountered: