Skip to content

Commit

Permalink
Merge pull request #57 from appuio/change/update-dns-records
Browse files Browse the repository at this point in the history
Cleanup DNS records
  • Loading branch information
glrf authored Apr 26, 2022
2 parents 87f81ad + f78d859 commit fe791c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ output "dns_entries" {
"node_name_suffix" = local.node_name_suffix,
"api_vip" = var.lb_count != 0 ? split("/", module.lb.api_vip[0].network)[0] : ""
"router_vip" = var.lb_count != 0 ? split("/", module.lb.router_vip[0].network)[0] : ""
"egress_vip" = var.lb_count != 0 ? split("/", module.lb.nat_vip[0].network)[0] : ""
"internal_vip" = cidrhost(var.privnet_cidr, 100),
"masters" = module.master.ip_addresses,
"cluster_id" = var.cluster_id,
Expand Down
5 changes: 4 additions & 1 deletion templates/dns.zone
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ $ORIGIN ${node_name_suffix}.

api IN A ${api_vip}
api-int IN A ${internal_vip}
*.apps IN A ${router_vip}
ingress IN A ${router_vip}
egress IN A ${egress_vip}

*.apps IN CNAME ingress.${node_name_suffix}

%{ for i, addr in lbs ~}
${lb_hostnames[i]} IN A ${addr}
Expand Down

0 comments on commit fe791c2

Please sign in to comment.