aws / aws/containers-roadmap

[EKS] [request]: Managed Node Group ASG AZ Rebalance Does not Respect Container Prestop

Open
#1,852 3 comments 7 reactions 0 assignees View on GitHub
EKS EKS Managed Nodes Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
When ASG AZ Rebalanced, EKS Managed Node Groups starts to drain the node and evict all the pods, and the default lifecycle hook Heartbeat timeout is 1800. If the pod has a prestop with sleep 1800s and terminationgraceperiods with 3600s, the ec2 node should wait at least 1800 then terminate the ec2 node. But currently, it only waits ~15 mins and does not respect the prestop.

**Which service(s) is this request for?**
EKS

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
The managed node groups az rebalance should respect the container prestop settings and terminate the ec2 node gracefully if the container has a prestop.

**Are you currently working around this issue?**
Add an additional custom lifecycle hook with 1800 Heartbeat timeout and no custom action.

Contributor guide

Open the contributing guide

Research direction

This is an EKS service request rather than a repository change, and the issue names no files or tests. Start by reviewing the described AZ rebalance, lifecycle-hook, prestop, and termination-grace-period behavior. Done would mean managed node groups wait for the container prestop before terminating the EC2 node.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kubernetes
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.