diff --git a/main.tf b/main.tf index 6774b477..9544887e 100644 --- a/main.tf +++ b/main.tf @@ -16,6 +16,7 @@ resource "azurerm_kubernetes_cluster" "main" { dns_prefix = var.prefix sku_tier = var.sku_tier private_cluster_enabled = var.private_cluster_enabled + private_dns_zone_id = var.private_dns_zone_id linux_profile { admin_username = var.admin_username diff --git a/variables.tf b/variables.tf index 8c86032f..0af16668 100644 --- a/variables.tf +++ b/variables.tf @@ -339,6 +339,12 @@ variable "node_resource_group" { default = null } +variable "private_dns_zone_id" { + description = "(Optional) Either the ID of Private DNS Zone which should be delegated to this Cluster, `System` to have AKS manage this or `None`. In case of `None` you will need to bring your own DNS server and set up resolving, otherwise cluster will have issues after provisioning. Changing this forces a new resource to be created." + type = string + default = null +} + variable "oidc_issuer_enabled" { description = "Enable or Disable the OIDC issuer URL. Defaults to false." type = bool