-
Notifications
You must be signed in to change notification settings - Fork 469
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
Concern about random suffix on nodepools in version 7 #491
Comments
Related to: |
Hello @tdevopsottawa I understand you are using the default node label my suggestion is to use your specific node labels for the Kubernetes scheduler: terraform-azurerm-aks/variables.tf Line 889 in 6e2f254
@mkilchhofer @the-technat you folks originally contributed to #357 thanks |
@tdevopsottawa I assume you are using multiple node pools with different node sizes / configurations that you want to schedule on? To give some background: we initially wanted to implement this behavior in a non-breaking way, but Terraform doesn't allow you to specify lifecycle arguments dynamically. The easiest way as @zioproto suggested is defining your own labels on the node pools since the names in the portal aren't predictable (and also have some limitations how long they can be). I'm thinking whether we could automatically set the @lonegunmanb you suggested back then to use a switch-case approach to implement create-before-destroy. Do you think we should reconsider that by now? Because these are two different approaches. One assumes you never replace your nodes and always update them whereas the other assume your nodes are cattle to throw away on the next upgrade. |
Hi @the-technat thanks for asking. I prefer the status quo because I'm cattle's fan 😄. We have done our experiment, once we use To support two different approaches is possible by replicating the node pool resource, one with But luckily we're working on |
I'm closing this issue since in |
Is there an existing issue for this?
Description
I'm planning an upgrade to version 7 and from this:
It sounds like the new version of the module adds a random suffix to the end of every node pool name. This is a very undesirable thing for my environment as we've got a huge CI stack set up where kubernetes manifests across lots of clusters are being set to deploy to specific node pool names with the node pool names hardcoded in the manifests.
If my understanding is correct is there some way to turn off this feature and just keep the simple node pool names? If there isn't this basically blocks me from upgrading.
New or Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Potential Terraform Configuration
No response
References
No response
The text was updated successfully, but these errors were encountered: