Skip to content

Commit 114b705

Browse files
authored
fix: (518) allow aks_pod_cidr to be set when cni is azure w/ overlay (#519)
Signed-off-by: Jeff Owens <[email protected]>
1 parent 2fa7d22 commit 114b705

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/azure_aks/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ resource "azurerm_kubernetes_cluster" "aks" {
3838
network_plugin_mode = var.aks_network_plugin_mode
3939
service_cidr = var.aks_service_cidr
4040
dns_service_ip = var.aks_dns_service_ip
41-
pod_cidr = var.aks_network_plugin == "kubenet" ? var.aks_pod_cidr : null
41+
pod_cidr = (
42+
var.aks_network_plugin == "kubenet" ||
43+
(var.aks_network_plugin == "azure" && var.aks_network_plugin_mode == "overlay")
44+
) ? var.aks_pod_cidr : null
4245
outbound_type = var.cluster_egress_type
4346
load_balancer_sku = "standard"
4447
}

0 commit comments

Comments
 (0)