Skip to content

Support target_group_arns for managed node groups #1539

@DmitriyStoyanov

Description

@DmitriyStoyanov

Is your request related to a new offering from AWS?

This feature request opened in aws provider for node groups
aws/containers-roadmap#709

but separate part can be added in module to support this feature

Is your request related to a problem? Please describe.

For the moment, we used nginx ingress controller and worker groups attached to alb via property target_group_arns
(A list of Application LoadBalancer (ALB) target group ARNs to be associated to the autoscaling group)

When we added managed node groups we found that alb target group does not contain instances from managed node groups. So ingress cannot work on these instances.

Describe the solution you'd like.

option as a target_group_arns for node_groups

Describe alternatives you've considered.

Currently to mitigate this issue we created separate resource (thanks to aws/containers-roadmap#709 (comment) ) :

resource "aws_autoscaling_attachment" "autoscaling_attachment" {
  for_each = {for name, value in module.eks.node_groups : name => lookup(lookup(lookup(value, "resources")[0], "autoscaling_groups")[0], "name")}
  autoscaling_group_name = each.value
  alb_target_group_arn   = aws_lb_target_group.alb.arn
}

So this part can be added in node_group submodule

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions