diff --git a/main.tf b/main.tf index 569b8f47..729f03fe 100644 --- a/main.tf +++ b/main.tf @@ -267,6 +267,7 @@ resource "azurerm_kubernetes_cluster" "main" { content { authorized_ip_ranges = var.api_server_authorized_ip_ranges subnet_id = var.api_server_subnet_id + vnet_integration_enabled = var.vnet_integration_enabled } } dynamic "auto_scaler_profile" { diff --git a/variables.tf b/variables.tf index 32118034..3ebb85a6 100644 --- a/variables.tf +++ b/variables.tf @@ -222,6 +222,12 @@ variable "api_server_subnet_id" { description = "(Optional) The ID of the Subnet where the API server endpoint is delegated to." } +variable "vnet_integration_enabled" { + type = bool + default = false + description = "(Optional) Should API Server VNet Integration be enabled? For more details please visit Use API Server VNet Integration." +} + variable "attached_acr_id_map" { type = map(string) default = {}