You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Description:
I'm using azurerm_route_table to deploy route table for a subnet that is being used for Azure Kubenetes Cluster using Kubenet plugin.
When using kubenet plugin, AKS will automatically add route to the route table to facilitate the routing to the pods running on the VMSS. These route rules are dynamic because the VMSS nodes come and go randomly. Then when I need to adjust some other features of in the same workspace, action group for example, even I don't change anything about the route table, azurerm_route_table will remove the dynamic created routes for VMSS. AKS will soon add them back but it will be 3-5 minutes later. Which means in this 3-5 minutes, the PODs on AKS cluster cannot receive the requests.
I'm trying to figure out a solution to avoid this routing table removal. lifecycle is not an option, cause in some circumstance I do need modify the route table, and terraform doesn't allow me to use a parameter to control lifecycle. https://www.terraform.io/language/meta-arguments/lifecycle#literal-values-only
Questions:
why azurerm_route_table deletes those routing rules out side the resource definition? in the load balancer resource for example, if an attribute is outside the resource definition, terraform doesn't delete it.
Is there any way I can parameterize this control of keeping/removing attributes outside the resource definition?
The text was updated successfully, but these errors were encountered:
There isn't any code. @BzSpi , please read the issue description carefully. The key issue here is that Terraform removes the routing rules that were not created in the Terraform code.
azurerm 3.23.0
terraform 1.2.5
Issue Description:
I'm using
azurerm_route_table
to deploy route table for a subnet that is being used for Azure Kubenetes Cluster using Kubenet plugin.When using kubenet plugin, AKS will automatically add route to the route table to facilitate the routing to the pods running on the VMSS. These route rules are dynamic because the VMSS nodes come and go randomly. Then when I need to adjust some other features of in the same workspace, action group for example, even I don't change anything about the route table,
azurerm_route_table
will remove the dynamic created routes for VMSS. AKS will soon add them back but it will be 3-5 minutes later. Which means in this 3-5 minutes, the PODs on AKS cluster cannot receive the requests.I'm trying to figure out a solution to avoid this routing table removal.
lifecycle
is not an option, cause in some circumstance I do need modify the route table, and terraform doesn't allow me to use a parameter to controllifecycle
. https://www.terraform.io/language/meta-arguments/lifecycle#literal-values-onlyQuestions:
azurerm_route_table
deletes those routing rules out side the resource definition? in the load balancer resource for example, if an attribute is outside the resource definition, terraform doesn't delete it.The text was updated successfully, but these errors were encountered: