1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00

data/aws: create an api-int dns name

wired to the same load balancer. But does mean you can change the certs
and CA for the apiserver on the public name, but let us continue to own
certs for the -int name.
This commit is contained in:
Eric Paris
2019-04-11 15:16:26 -04:00
parent b4b6ee8631
commit 13e4b702f7

View File

@@ -30,6 +30,18 @@ resource "aws_route53_record" "api_external" {
}
resource "aws_route53_record" "api_internal" {
zone_id = "${aws_route53_zone.int.zone_id}"
name = "api-int.${var.cluster_domain}"
type = "A"
alias {
name = "${var.api_internal_lb_dns_name}"
zone_id = "${var.api_internal_lb_zone_id}"
evaluate_target_health = false
}
}
resource "aws_route53_record" "api_external_internal_zone" {
zone_id = "${aws_route53_zone.int.zone_id}"
name = "api.${var.cluster_domain}"
type = "A"