@@ -15,21 +15,23 @@ limitations under the License.
1515*/
1616
1717module "prow_build" {
18- source = " Azure/aks/azurerm"
19- version = " 9.2 .0"
18+ source = " Azure/aks/azurerm//v4 "
19+ version = " 10.0 .0"
2020 resource_group_name = azurerm_resource_group. rg . name
2121 location = azurerm_resource_group. rg . location
2222 sku_tier = " Standard"
23- automatic_channel_upgrade = " patch "
24- kubernetes_version = " 1.32 "
25- prefix = " k8s-infra"
23+ automatic_channel_upgrade = " stable "
24+ # kubernetes_version = "1.34 "
25+ prefix = " k8s-infra"
2626
2727 role_based_access_control_enabled = true
2828 workload_identity_enabled = true
2929 oidc_issuer_enabled = true
30- rbac_aad = true
31- rbac_aad_managed = true
32- local_account_disabled = false
30+ rbac_aad_azure_rbac_enabled = true
31+ rbac_aad_admin_group_object_ids = [
32+ " 2d1bde94-76f6-4538-9ac0-1b2ef459ba15" # aks-admins
33+ ]
34+ local_account_disabled = false
3335
3436 identity_type = " UserAssigned"
3537 identity_ids = [azurerm_user_assigned_identity . aks_identity . id ]
@@ -42,10 +44,13 @@ module "prow_build" {
4244 user_assigned_identity_id = azurerm_user_assigned_identity.aks_kubelet_identity.id
4345 }
4446
45- ebpf_data_plane = " cilium"
46- network_plugin_mode = " overlay"
47- network_plugin = " azure"
48- network_policy = " cilium"
47+ ebpf_data_plane = " cilium"
48+ network_plugin_mode = " overlay"
49+ network_plugin = " azure"
50+ network_policy = " cilium"
51+ network_ip_versions = [" IPv4" , " IPv6" ]
52+ network_data_plane = " cilium"
53+ net_profile_pod_cidrs = [" 10.244.0.0/16" , " fd12:3456:789a::/64" ]
4954
5055 enable_auto_scaling = true
5156 node_resource_group = " MC_${ local . prefix } -prow-build-${ azurerm_resource_group . rg . location } -aks-rg"
@@ -60,25 +65,47 @@ module "prow_build" {
6065 agents_max_pods = 110
6166 agents_type = " VirtualMachineScaleSets"
6267 agents_availability_zones = [" 1" , " 3" ]
63- os_sku = " AzureLinux "
68+ os_sku = " Ubuntu "
6469 agents_size = " Standard_D4ds_v5"
6570 only_critical_addons_enabled = true
6671 temporary_name_for_rotation = " tmpnodepool1"
6772 agents_tags = var. common_tags
68- vnet_subnet_id = module. prow_network . subnets . prow_build_aks . resource_id
73+ vnet_subnet = {
74+ id = module.prow_network.subnets.prow_build_aks.resource_id
75+ }
6976
7077 storage_profile_enabled = true
7178 storage_profile_blob_driver_enabled = false
7279 storage_profile_file_driver_enabled = false
7380
7481 node_pools = {
75- pool1 = {
76- name = " pool1"
77- vm_size = " Standard_E8ds_v5"
82+ pool-amd64 = {
83+ name = " amd64"
84+ vm_size = " Standard_D8ads_v6"
85+ enable_auto_scaling = true
86+ kubelet_disk_type = " OS"
87+ min_count = 3
88+ max_count = 100
89+ max_pods = 110
90+ os_disk_type = " Ephemeral"
91+ os_disk_size_gb = 100
92+ os_sku = " Ubuntu"
93+ vnet_subnet_id = module.prow_network.subnets.prow_build_aks.resource_id
94+
95+ upgrade_settings = {
96+ max_surge = " 33%"
97+ drain_timeout_in_minutes = 90
98+ node_soak_duration_in_minutes = 1
99+ }
100+ }
101+ pool-arm64 = {
102+ name = " arm64"
103+ vm_size = " Standard_D8pds_v6"
78104 enable_auto_scaling = true
79105 kubelet_disk_type = " OS"
80106 min_count = 3
81- max_count = 200
107+ max_count = 100
108+ max_pods = 110
82109 os_disk_type = " Ephemeral"
83110 os_disk_size_gb = 100
84111 os_sku = " Ubuntu"
0 commit comments