11locals {
22 node_pool_add = {
33 (local. active_node_group ) = {
4- orchestrator_version = var.kubernetes_version,
5- node_taints = local.upgrading ? [" platform.plural.sh/draining=true:NoSchedule" ] : [],
4+ orchestrator_version = local.node_orchestrator_version,
5+ node_taints = local.upgrading ? [" platform.plural.sh/draining=true:NoSchedule" ] : [],
6+ node_labels = local.upgrading ? {} : {
7+ " platform.plural.sh/stack-runner" = " true"
8+ },
69 },
7- (local. drain_node_group ) = {
8- orchestrator_version = var.next_kubernetes_version,
10+ (local. drain_node_group ) = {
11+ orchestrator_version = local.next_kubernetes_version,
12+ node_labels = local.upgrading ? {
13+ " platform.plural.sh/stack-runner" = " true"
14+ } : {},
915 }
1016 }
1117
12- full_node_pools = {for k , v in var . node_pools : k => merge (v, try (lookup (local. node_pool_add , k), {})) if k != local . drain_node_group || local . upgrading == true }
18+ full_node_pools = { for k , v in var . node_pools : k => merge (v, try (lookup (local. node_pool_add , k), {})) if k != local . drain_node_group || local . upgrading == true }
1319}
1420
15-
1621module "aks" {
1722 source = " Azure/aks/azurerm"
1823 version = " 9.2.0"
1924
20- kubernetes_version = var. next_kubernetes_version
25+ kubernetes_version = local. next_kubernetes_version
26+ orchestrator_version = local. node_orchestrator_version
2127 cluster_name = var. cluster_name
2228 resource_group_name = local. resource_group . name
2329 prefix = var. cluster_name
2430 os_disk_size_gb = 60
2531 sku_tier = " Standard"
2632 rbac_aad = false
2733 vnet_subnet_id = azurerm_subnet. network . id
28- node_pools = {for name , pool in local . full_node_pools : name => merge (pool, {name = name, vnet_subnet_id = azurerm_subnet.network.id}) }
29-
34+ node_pools = { for name , pool in local . full_node_pools : name => merge (pool, { name = name, vnet_subnet_id = azurerm_subnet.network.id }) }
35+
3036 ebpf_data_plane = " cilium"
3137 network_plugin_mode = " overlay"
3238 network_plugin = " azure"
@@ -35,4 +41,4 @@ module "aks" {
3541
3642 workload_identity_enabled = var. workload_identity_enabled
3743 oidc_issuer_enabled = var. workload_identity_enabled
38- }
44+ }
0 commit comments