diff --git a/examples/compute/kubernetes_services/101-single-cluster/aks.tfvars b/examples/compute/kubernetes_services/101-single-cluster/aks.tfvars index dbbf22f00e..a55d375ee9 100644 --- a/examples/compute/kubernetes_services/101-single-cluster/aks.tfvars +++ b/examples/compute/kubernetes_services/101-single-cluster/aks.tfvars @@ -61,11 +61,12 @@ aks_clusters = { key = "aks_nodepool_system" #resource_id = "/subscriptions/97958dac-xxxx-xxxx-xxxx-9f436fa73bd4/resourceGroups/qxgc-rg-aks-re1/providers/Microsoft.Network/virtualNetworks/qxgc-vnet-aks/subnets/qxgc-snet-aks_nodepool_system" } - enabled_auto_scaling = false - enable_node_public_ip = false - max_pods = 30 - node_count = 1 - os_disk_size_gb = 512 + enabled_auto_scaling = false + enable_node_public_ip = false + max_pods = 30 + node_count = 1 + os_disk_size_gb = 512 + temporary_name_for_rotation = "temp" tags = { "project" = "system services" } @@ -80,4 +81,4 @@ aks_clusters = { } } } -} \ No newline at end of file +} diff --git a/modules/compute/aks/aks.tf b/modules/compute/aks/aks.tf index 4e0eb98d9b..14a76b7407 100644 --- a/modules/compute/aks/aks.tf +++ b/modules/compute/aks/aks.tf @@ -63,6 +63,7 @@ resource "azurerm_kubernetes_cluster" "aks" { os_disk_type = try(var.settings.default_node_pool.os_disk_type, null) os_sku = try(var.settings.default_node_pool.os_sku, null) tags = merge(try(var.settings.default_node_pool.tags, {}), local.tags) + temporary_name_for_rotation = try(var.settings.default_node_pool.temporary_name_for_rotation, null) type = try(var.settings.default_node_pool.type, "VirtualMachineScaleSets") ultra_ssd_enabled = try(var.settings.default_node_pool.ultra_ssd_enabled, false) vm_size = var.settings.default_node_pool.vm_size