-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MD RollingUpdate support to only add new node after one old node deleted completely #3417
Comments
I'm a +1 to the logic in 2, but I think I would like to argue that the current behavior should be considered a bug and we should fix it without introducing a new flag for the appropriate behavior. |
/kind bug |
@vincepri: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Thanks. Will have a PR for the fix. |
/assign |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
User Story
As a operator I would like to support scale in for the MachineDeployment, to only launch new nodes after deleting existing nodes, due to resource constraints or other stateful resources (for eg disks) on the workers.
Detailed Description
The use case is to support hyper converged storage solutions like OpenEBS and Portworx. With disk autoprovision, Portworx will try to use existing disk to attach to worker nodes. If no existing disk found, will create new ones.
Then for upgrade, the behavior I'm trying to achieve is, only until one old node completely deleted then start create a new node, so the existing disk can attach to the new node.
I can achieve partially by setting maxSurge=0 and maxUnavailable=1. The issue is when MachineSet calculate replica count, it does not contain Machines in deleting state, so new node is launched before old node is deleted, even through maxsurge=0.
Anything else you would like to add:
I think there are two ways to achieve this:
Personally I prefer solution 2. Let me know if this makes sense.
/kind feature
The text was updated successfully, but these errors were encountered: