diff --git a/main.tf b/main.tf index d7f4dcf..7a302e4 100644 --- a/main.tf +++ b/main.tf @@ -43,14 +43,11 @@ resource "azurerm_kubernetes_cluster" "aks" { network_profile { network_plugin = var.network_plugin - network_mode = (var.network_plugin == "azure" ? var.network_mode : null) dns_service_ip = (var.network_profile_options == null ? null : var.network_profile_options.dns_service_ip) docker_bridge_cidr = (var.network_profile_options == null ? null : var.network_profile_options.docker_bridge_cidr) service_cidr = (var.network_profile_options == null ? null : var.network_profile_options.service_cidr) outbound_type = var.outbound_type pod_cidr = (var.network_plugin == "kubenet" ? var.pod_cidr : null) - - } default_node_pool { diff --git a/variables.tf b/variables.tf index b4b0e4a..2a8625e 100644 --- a/variables.tf +++ b/variables.tf @@ -92,27 +92,18 @@ variable "network_plugin" { error_message = "Network Plugin must set to kubenet or azure." } - -} - -variable "network_mode" { - description = "network mode to br used with Azure CNI" - type = string - default = "transparent" } variable "outbound_type" { description = "outbound (egress) routing method which should be used for this Kubernetes Cluster" type = string default = "loadBalancer" - } variable "pod_cidr" { description = "used for pod IP addresses" type = string default = null - } variable "network_profile_options" {