forked from kubernetes/k8s.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaks.tf
More file actions
126 lines (111 loc) · 4.29 KB
/
aks.tf
File metadata and controls
126 lines (111 loc) · 4.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
Copyright 2024 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
module "prow_build" {
source = "Azure/aks/azurerm//v4"
version = "10.0.0"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
sku_tier = "Standard"
automatic_channel_upgrade = "stable"
# kubernetes_version = "1.34"
prefix = "k8s-infra"
role_based_access_control_enabled = true
workload_identity_enabled = true
oidc_issuer_enabled = true
rbac_aad_azure_rbac_enabled = true
rbac_aad_admin_group_object_ids = [
"2d1bde94-76f6-4538-9ac0-1b2ef459ba15" # aks-admins
]
local_account_disabled = false
identity_type = "UserAssigned"
identity_ids = [azurerm_user_assigned_identity.aks_identity.id]
msi_auth_for_monitoring_enabled = true
tags = var.common_tags
kubelet_identity = {
client_id = azurerm_user_assigned_identity.aks_kubelet_identity.client_id
object_id = azurerm_user_assigned_identity.aks_kubelet_identity.principal_id
user_assigned_identity_id = azurerm_user_assigned_identity.aks_kubelet_identity.id
}
ebpf_data_plane = "cilium"
network_plugin_mode = "overlay"
network_plugin = "azure"
network_policy = "cilium"
network_ip_versions = ["IPv4", "IPv6"]
network_data_plane = "cilium"
net_profile_pod_cidrs = ["10.244.0.0/16", "fd12:3456:789a::/64"]
enable_auto_scaling = true
node_resource_group = "MC_${local.prefix}-prow-build-${azurerm_resource_group.rg.location}-aks-rg"
auto_scaler_profile_enabled = true
auto_scaler_profile_balance_similar_node_groups = true
auto_scaler_profile_max_unready_nodes = 1
agents_pool_name = "system"
agents_min_count = 3
agents_max_count = 9
agents_max_pods = 110
agents_type = "VirtualMachineScaleSets"
agents_availability_zones = ["1", "3"]
os_sku = "Ubuntu"
agents_size = "Standard_D4ds_v5"
only_critical_addons_enabled = true
temporary_name_for_rotation = "tmpnodepool1"
agents_tags = var.common_tags
vnet_subnet = {
id = module.prow_network.subnets.prow_build_aks.resource_id
}
storage_profile_enabled = true
storage_profile_blob_driver_enabled = false
storage_profile_file_driver_enabled = false
node_pools = {
pool-amd64 = {
name = "amd64"
vm_size = "Standard_D8ads_v6"
enable_auto_scaling = true
kubelet_disk_type = "OS"
min_count = 1
max_count = 100
max_pods = 110
os_disk_type = "Ephemeral"
os_disk_size_gb = 100
os_sku = "Ubuntu"
vnet_subnet = {
id = module.prow_network.subnets.prow_build_aks.resource_id
}
upgrade_settings = {
max_surge = "33%"
drain_timeout_in_minutes = 90
node_soak_duration_in_minutes = 1
}
}
pool-arm64 = {
name = "arm64"
vm_size = "Standard_D8pds_v6"
enable_auto_scaling = true
kubelet_disk_type = "OS"
min_count = 1
max_count = 100
max_pods = 110
os_disk_type = "Ephemeral"
os_disk_size_gb = 100
os_sku = "Ubuntu"
vnet_subnet = {
id = module.prow_network.subnets.prow_build_aks.resource_id
}
upgrade_settings = {
max_surge = "33%"
drain_timeout_in_minutes = 90
node_soak_duration_in_minutes = 1
}
}
}
depends_on = [module.prow_network]
}