@@ -37,31 +37,31 @@ resource "azurerm_subnet" "test" {
3737module "aks" {
3838 source = " ../.."
3939
40- location = local. resource_group . location
41- prefix = random_id. name . hex
42- rbac_aad_tenant_id = data. azurerm_client_config . current . tenant_id
43- resource_group_name = local. resource_group . name
44- kubernetes_version = " 1.30" # don't specify the patch version!
45- automatic_channel_upgrade = " patch"
46- agents_availability_zones = [" 1" , " 2" ]
47- agents_count = null
48- agents_max_count = 2
49- agents_max_pods = 100
50- agents_min_count = 1
51- agents_pool_name = " testnodepool"
52- agents_size = " Standard_DS2_v2"
53- auto_scaling_enabled = true
54- client_id = var. client_id
55- client_secret = var. client_secret
56- log_analytics_workspace_enabled = true
57- net_profile_dns_service_ip = " 10.0.0.10"
58- net_profile_service_cidr = " 10.0.0.0/16"
59- network_plugin = " azure"
60- orchestrator_version = " 1.30"
61- os_disk_size_gb = 60
62- private_cluster_enabled = false
40+ location = local. resource_group . location
41+ prefix = random_id. name . hex
42+ rbac_aad_tenant_id = data. azurerm_client_config . current . tenant_id
43+ resource_group_name = local. resource_group . name
44+ kubernetes_version = " 1.30" # don't specify the patch version!
45+ automatic_channel_upgrade = " patch"
46+ agents_availability_zones = [" 1" , " 2" ]
47+ agents_count = null
48+ agents_max_count = 2
49+ agents_max_pods = 100
50+ agents_min_count = 1
51+ agents_pool_name = " testnodepool"
52+ agents_size = " Standard_DS2_v2"
53+ auto_scaling_enabled = true
54+ client_id = var. client_id
55+ client_secret = var. client_secret
56+ log_analytics_workspace_enabled = true
57+ net_profile_dns_service_ip = " 10.0.0.10"
58+ net_profile_service_cidr = " 10.0.0.0/16"
59+ network_plugin = " azure"
60+ orchestrator_version = " 1.30"
61+ os_disk_size_gb = 60
62+ private_cluster_enabled = false
6363 role_based_access_control_enabled = true
64- sku_tier = " Standard"
64+ sku_tier = " Standard"
6565 vnet_subnet = {
6666 id = azurerm_subnet.test.id
6767 }
@@ -76,21 +76,21 @@ module "aks" {
7676 # Root zone configuration - uses VNet DNS
7777 " ." = {
7878 query_logging = " Error"
79- protocol = " PreferUDP"
80- forward_destination = " VnetDNS"
81- forward_policy = " Random"
82- max_concurrent = 150
83- cache_duration_in_seconds = 300
79+ protocol = " PreferUDP"
80+ forward_destination = " VnetDNS"
81+ forward_policy = " Random"
82+ max_concurrent = 150
83+ cache_duration_in_seconds = 300
8484 serve_stale_duration_in_seconds = 86400
85- serve_stale = " Immediate"
85+ serve_stale = " Immediate"
8686 }
8787 # Custom zone configuration
8888 " example.local" = {
8989 query_logging = " Log"
90- protocol = " PreferUDP"
90+ protocol = " PreferUDP"
9191 forward_destination = " VnetDNS"
92- forward_policy = " RoundRobin"
93- max_concurrent = 100
92+ forward_policy = " RoundRobin"
93+ max_concurrent = 100
9494 }
9595 }
9696 }
@@ -101,20 +101,20 @@ module "aks" {
101101 # Cluster-local zone - uses Kubernetes CoreDNS
102102 " cluster.local" = {
103103 query_logging = " Error"
104- protocol = " PreferUDP"
105- forward_destination = " ClusterCoreDNS"
106- forward_policy = " Sequential"
107- max_concurrent = 200
108- cache_duration_in_seconds = 600
104+ protocol = " PreferUDP"
105+ forward_destination = " ClusterCoreDNS"
106+ forward_policy = " Sequential"
107+ max_concurrent = 200
108+ cache_duration_in_seconds = 600
109109 serve_stale_duration_in_seconds = 3600
110- serve_stale = " Verify"
110+ serve_stale = " Verify"
111111 }
112112 # Service discovery zone
113113 " svc.cluster.local" = {
114114 query_logging = " Log"
115- protocol = " PreferUDP"
115+ protocol = " PreferUDP"
116116 forward_destination = " ClusterCoreDNS"
117- forward_policy = " Random"
117+ forward_policy = " Random"
118118 }
119119 }
120120 }
0 commit comments