-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
AKS cluster agent pool with fix for autoscaling and count. #4543
Conversation
hi @pather87 Thanks for this PR - apologies for the delay reviewing this! I've spent some time over the last couple of weeks trying to work out how to consolidate this PR, #4256, #4676, #4046 and #4472, since they're all attempting to solve the same problem (a breaking behavioural change in the AKS API, where non-default node pools now have to be managed via a separate API) in different ways. After spending some time investigating/experimenting with this I believe the best approach going forward is to introduce a replacement This allows existing users to continue to use the Whilst this isn't ideal since users will need to migrate at some point - it seems preferable from a UX perspective to manage these as separate resources, rather than inline (which also allows users to order node pool creation/destruction if necessary). As such whilst we'd like to thank you for this contribution (and apologise again for the delay reviewing it!); ultimately we're going to take a different direction here and thus I'm going to close this PR in favour of #4898 which introduces the new Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This PR is an extension of #4046
Master is merged back into the feature branch.
This PR improves the handling of the count attribute when autoscaling is enabled ( Fixes #4075 ).
When autoscaling is enabled and count attribute is different from the actual count of the currently scaled VMSS, Azure fails to update the agent pool profile and reports
To circumvent this, we need to make the count attribute unavailable to set from the users perspective. Therefore, default value of count is unset and a check is included, so that the user is unable to set count when autoscaling config is present. The correct count is fetched from the Get Agentpool request, when the resource is updated. If the resource is new, a sane default value of MinCount is send with the create request.