Skip to content

Commit 4d1422c

Browse files
authored
Merge pull request #38 from using-system/features/aks-configure-end-point
feat: Add private_dns_zone_id for az-aks tf module
2 parents 7b12ed1 + 7bc9022 commit 4d1422c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

terraform/modules/az-aks/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ resource "azurerm_kubernetes_cluster" "aks" {
1919
private_cluster_enabled = var.configuration.private_cluster
2020
local_account_disabled = var.configuration.local_account_disabled
2121
automatic_channel_upgrade = var.configuration.automatic_channel_upgrade
22+
private_dns_zone_id = var.private_dns_zone_id
2223

2324
default_node_pool {
2425
name = "defaultpool"

terraform/modules/az-aks/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ variable "subnet_id" {
6060
description = "Id of the subnet to attach aks nodes"
6161
}
6262

63+
variable "private_dns_zone_id" {
64+
description = "Id of the private dns zone to attach aks"
65+
default = null
66+
}
67+
6368
variable "tags" {
6469
description = "Tags to associate with resources."
6570
type = map(string)

0 commit comments

Comments
 (0)