Skip to content
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ 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
private_cluster_public_fqdn_enabled = var.private_cluster_public_fqdn_enabled
Comment thread
iamamitgera marked this conversation as resolved.


linux_profile {
admin_username = var.admin_username
Expand Down
20 changes: 20 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -318,3 +318,23 @@ variable "enable_host_encryption" {
type = bool
default = false
}

variable "private_dns_zone_id" {
description = <<EOT
(Optional) Either the ID of Private DNS Zone which should be delegated to this Cluster,
or System to have AKS manage this or None.
Comment thread
iamamitgera marked this conversation as resolved.
Outdated
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.
EOT
type = string
default = null
}

variable "private_cluster_public_fqdn_enabled" {
description = <<EOT
(Optional) Specifies whether a Public FQDN for this Private Cluster should be added. Defaults to false.
Comment thread
iamamitgera marked this conversation as resolved.
Outdated
EOT
type = bool
default = false
}