From b20233e05dac7dfaedbe5ed8e03cbaffe1738240 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Thu, 28 Sep 2017 00:46:17 -0700 Subject: [PATCH] aws: Add Ingress ELB DNS name output as ingress_dns_name * Expose the Ingress ELB DNS name so application DNS records can be defined in Terraform to resolve to the Ingress ELB --- aws/container-linux/kubernetes/ingress.tf | 2 +- aws/container-linux/kubernetes/outputs.tf | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 aws/container-linux/kubernetes/outputs.tf diff --git a/aws/container-linux/kubernetes/ingress.tf b/aws/container-linux/kubernetes/ingress.tf index 480c6d44..ae42f390 100644 --- a/aws/container-linux/kubernetes/ingress.tf +++ b/aws/container-linux/kubernetes/ingress.tf @@ -18,7 +18,7 @@ resource "aws_elb" "ingress" { instance_protocol = "tcp" } - # Kubelet HTTP health check + # Ingress Controller HTTP health check health_check { target = "HTTP:10254/healthz" healthy_threshold = 2 diff --git a/aws/container-linux/kubernetes/outputs.tf b/aws/container-linux/kubernetes/outputs.tf new file mode 100644 index 00000000..66ba3f88 --- /dev/null +++ b/aws/container-linux/kubernetes/outputs.tf @@ -0,0 +1,5 @@ +output "ingress_dns_name" { + value = "${aws_elb.ingress.dns_name}" + description = "DNS name of the ELB for distributing traffic to Ingress controllers" +} +