Skip to content

Commit

Permalink
feat(aks)!: remove DNS resources from this module
Browse files Browse the repository at this point in the history
  • Loading branch information
lentidas committed Jan 11, 2024
1 parent aebd8aa commit 19eb83a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions aks/extra_variables.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
variable "node_resource_group_name" {
description = "The aks managed cluster resource group name."
type = string
}

variable "dns_zone_resource_group_name" {
description = "The Azure DNS zone's resource group name."
type = string
}
18 changes: 0 additions & 18 deletions aks/main.tf
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
data "azurerm_dns_zone" "this" {
name = var.base_domain
resource_group_name = var.dns_zone_resource_group_name
}

data "azurerm_resource_group" "nodes_resource_group" {
name = var.node_resource_group_name
}

# TODO should we move this out of here?
resource "azurerm_dns_cname_record" "wildcard" {
name = "*.apps.${var.cluster_name}"
zone_name = data.azurerm_dns_zone.this.name
resource_group_name = data.azurerm_dns_zone.this.resource_group_name
ttl = 300
record = "${local.azure_dns_label_name}.${data.azurerm_resource_group.nodes_resource_group.location}.cloudapp.azure.com."
}

module "traefik" {
source = "../"

Expand Down

0 comments on commit 19eb83a

Please sign in to comment.