From b8b3b5820e18f6f054314e460ef5332c75d35e90 Mon Sep 17 00:00:00 2001 From: Karoline Pauls <43616133+karolinepauls@users.noreply.github.com> Date: Wed, 7 Aug 2019 08:43:09 +0100 Subject: [PATCH] basic example: correct elb tags (#458) Added the "kubernetes.io/role/elb" tag to the public subnets in the basic example. Per documentation, ELB tag values are supposed to be "1". ELB tag values being "true" are known not to work with aws-alb-ingress-controller. https://docs.aws.amazon.com/eks/latest/userguide/load-balancing.html https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html --- CHANGELOG.md | 1 + examples/basic/main.tf | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7412f84..5d7d2be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ project adheres to [Semantic Versioning](http://semver.org/). - Output the name of the cloudwatch log group (by @gbooth27) - Added `cpu_credits` param for the workers defined in `worker_groups_launch_template` (by @a-shink) - Added support for EBS Volumes tag in `worker_groups_launch_template` and `workers_launch_template_mixed.tf` (by @sppwf) + - Basic example now tags networks correctly, as per [ELB documentation](https://docs.aws.amazon.com/eks/latest/userguide/load-balancing.html) and [ALB documentation](https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html) (by @karolinepauls) ### Changed diff --git a/examples/basic/main.tf b/examples/basic/main.tf index c7d0cad..e68fd79 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -101,11 +101,12 @@ module "vpc" { public_subnet_tags = { "kubernetes.io/cluster/${local.cluster_name}" = "shared" + "kubernetes.io/role/elb" = "1" } private_subnet_tags = { "kubernetes.io/cluster/${local.cluster_name}" = "shared" - "kubernetes.io/role/internal-elb" = "true" + "kubernetes.io/role/internal-elb" = "1" } }