-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Spot pools can't set max surge #19355
Comments
👍 |
1 similar comment
👍 |
You need a |
@spatel-15 Thank you for opening this issue. Were you able to resolve the issue by using dynamic block for your upgrade_setting like @robin-wayve suggested? |
@rcskosir here is an example that might require some updates depending on your
|
Thanks for opening this issue @spatel-15. As the error suggests, Since this is working as intended and the suggestions above should resolve your issue I'm going to close this issue, do let us know if that is not the case. |
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.3.2
AzureRM Provider Version
3.12.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster_node_pool
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
max_surge attribute is not required for SPOT nodepools
Actual Behaviour
max_surge
is a required field in Terraformazurerm_kubernetes_cluster_node_pool
resource but Azure API does not support value formax_surge
.So when i defined the below settings -
i get this error
│ Error: creating Node Pool: (Agent Pool Name "x2xx3" / Managed Cluster Name "wowdk8suiaae" / Resource Group "xxx-dev-k8s-xxxxxxxx-xxx"): containerservice.AgentPoolsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The value of parameter agentPoolProfile.upgrade.maxSurge is invalid. Error details: Spot pools can't set max surge. Please see https://aka.ms/aks-naming-rules for more details." Target="agentPoolProfile.upgrade.maxSurge"
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: