-
Notifications
You must be signed in to change notification settings - Fork 421
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
Better Detect when Machines in MachinePool VMSS are not running on the latest model #2975
Better Detect when Machines in MachinePool VMSS are not running on the latest model #2975
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @primeroz. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
9437d45
to
1506cce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes , i see. I will join the Office hours in case you want to talk about this ? On one side this is kind of a blocker for us to be able to use MachinePools but on the other side if such a big refactor of MachinePool codebase is coming through that other issue it might be worth waiting for it ? |
@mboersma while looking at #2813 i came up with a question about the approach in this PR This change i did is only making the detection of nodes that are not running the latestmodel more precise and relies on while testing before writing this PR i can see that when a VMSS is patched there is a surge that only replace the number of nodes defined in the To my understanding this surge control code does not change in #2813 and will do exactly the same thing. |
note to self, during Office Hour it was brought up this could clash with the related to kubernetes-sigs/cluster-api#7717 and #2683 ? |
I am closing this PR for now. I am not so sure this is the right approach so i will write something up and post it into Slack for feedback before picking this up again. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Uses the value for
latestModelApplied
as returned by Azure to determine if the Machine is up-to-date or not.Capz will Delete and replace nodes that are not running the latest mode, fixing the issue of rolling out a change to the vmSize or Kubernetes Version to a set of nodes in a machinepool.
I think this is what we want based on the documentation here which at the moment is not true ( at least in my testing )
Which issue(s) this PR fixes :
Fixes # #2972
Special notes for your reviewer:
feature
but maybe it should be abug
since at the moment the controller does not do what the docs says it should do when spec of machinepool change ?TODOs:
Release note: