-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaks.tf
80 lines (75 loc) · 2.71 KB
/
aks.tf
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
locals {
runner_vm_size = "Standard_D2s_v3"
}
module "aks" {
source = "Azure/aks/azurerm"
version = "~> 9.1.0"
prefix = var.nuon_id
resource_group_name = azurerm_resource_group.rg.name
kubernetes_version = var.cluster_version
automatic_channel_upgrade = "patch"
agents_availability_zones = length(local.azs) > 0 ? local.azs : null
agents_count = null
agents_max_count = 2
agents_max_pods = 100
agents_min_count = 1
agents_pool_name = "agents"
agents_pool_linux_os_configs = [
{
transparent_huge_page_enabled = "always"
sysctl_configs = [
{
fs_aio_max_nr = 65536
fs_file_max = 100000
fs_inotify_max_user_watches = 1000000
}
]
}
]
agents_type = "VirtualMachineScaleSets"
azure_policy_enabled = true
enable_auto_scaling = true
enable_host_encryption = false
green_field_application_gateway_for_ingress = {
name = "ingress"
subnet_cidr = local.appgw_cidr
}
create_role_assignments_for_application_gateway = true
local_account_disabled = false
log_analytics_workspace_enabled = false
net_profile_dns_service_ip = local.dns_service_ip
net_profile_service_cidr = local.service_cidr
network_plugin = "azure"
network_policy = "azure"
os_disk_size_gb = 60
private_cluster_enabled = false
rbac_aad = true
rbac_aad_managed = true
role_based_access_control_enabled = true
sku_tier = "Standard"
vnet_subnet_id = module.network.vnet_subnets[0]
temporary_name_for_rotation = "${substr(var.nuon_id, 1, 7)}temp"
attached_acr_id_map = {
"${azurerm_container_registry.acr.name}" = azurerm_container_registry.acr.id
}
node_pools = {
"runner" = {
name = "runner"
vm_size = local.runner_vm_size
node_count = 1
vnet_subnet_id = module.network.vnet_subnets[0]
create_before_destroy = true
}
"default" = {
name = "default"
vm_size = var.vm_size
node_count = var.node_count
vnet_subnet_id = module.network.vnet_subnets[0]
create_before_destroy = true
}
}
depends_on = [
module.network,
azurerm_user_assigned_identity.runner
]
}