-
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
max_surge is required, but not a vaild parameter for spot node pools #26465
Comments
Hi @stockmaj , Thank you for taking time to report this issue! A workaround is using the |
Thanks for opening this issue @stockmaj. We've had issues with the I was able to successfully provision a spot node pool with the Could you let me know which k8s versions you're using and where you're trying to create the cluster? |
This claiming to have changes every time is happening on two AKS kubernetes clusters version 1.28.9, when I omit upgrade settings in terraform. |
@stephybun thanks for looking.
|
@stockmaj thanks, would you mind providing the Azure location you're trying to provision to as well? |
|
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.8.5
AzureRM Provider Version
v3.109.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster_node_pool
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
If I omit upgrade_setttings entirely, the resource is marked as changed on every apply
If I supply upgrade_settings with an empty object (upgrade_settings {}) then it tells me that max_surge is a required parameter
If I supply upgrade_settings with a max surge, as above, I get the error in actual behavior.
I would expect one of 2 behaviors
Actual Behaviour
With no upgrade_settings:
With upgrade settings supplied, but empty like this:
I get this error:
With the config above, the plan says:
but I get this error
Steps to Reproduce
run a terraform apply with a node pool that either does not specify an upgrade_settings, does not supply an upgrade_settings.max_surge, or does so on a spot nodepool, as described above.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: