-
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 enable autoscaling #3174
AKS enable autoscaling #3174
Conversation
I suppose we can start reviewing this, with the existing test coverage coupled with the new tests we should be fine to just run this against the acceptance test suite. |
I am testing this PR out now, using the local build to create some kubernetes clusters. Hold off on any review until I work the kinks out of this. |
So, I haven't run the full test suite as I am still using just a personal subscription but I have run the new tests (both with VMSS autoscale off and VMSS autoscale on) and they've passed. I learned that I cannot have This PR includes the work to both allow VMSS as well as allow autoscaling (I had originally thought these things one and the same otherwise I would have split it up). Feel free to dig in and poke holes in the code now :) |
when can we expect this to be merged into master? |
@katbyte Is anyone looking at adding this anytime soon? Thanks! |
One note. Please keep in mind that this will introduce some issues. Azure API behaves differently if the type of agent pools are AvailabilitySets or VMScaleSets. If the cluster is created with VMScaleSets, the API stops allowing the same request being resent, claiming that any modification to the agent pool must be done through the agent pool API.
So for old clusters it will work as before, but clusters using this feature will fail to update or if the first request fails to create the cluster (timeout, network error... what ever) terraform will never be able to create the cluster. |
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 bumps the containerservice SDK - fixing a few pieces that the new API changed.
The goal here is to get the kubernetes VMSS working, which would resolve #2900
I have added a test to both the AKS resource and the AKS data source but I am making a few assumptions I need to validate.
VirtualMachineScaleSets
(conversely, if it is not enabled is it alwaysAvailabilitySet
)? This link seems to affirm this assumption.Is the allowedMin count must be 1 or greater. Setting to 0 caused the API to error with an invalidmin_count
0 or 1? I've set it to 0 in the test, so if it is not allowed that test should fail.min_count
value.