-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support target_group_arns for managed node groups #1539
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
why you cannot use normal service |
From my case, I had previously created LB for nginx ingress for whole cluster and it was attached to ALB group via |
I really dont understand why you cannot use cloud provider or mentioned https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/service/nlb/ ? |
Because ALB already exist in separate terraform module, with management of Security groups, WAF, Certificates, etc... in separate module. |
@daroga0002 Many of us don't use service type "LoadBalancer" because we prefer to use terraform when creating infrastructure. That way we can manage security groups, dns, and so on in a much controlled way than when kubernetes creates it automatically. That said I use this without trouble resource "aws_autoscaling_attachment" "node_groups--ELB_NAME" { autoscaling_group_name = lookup(lookup(lookup(each.value, "resources")[0], "autoscaling_groups")[0], "name") |
From my side I already solved this issue by creation of
And just created this issue, to possible add this ability in the module as we already have for asg groups. Or possible if someone also will face with the same issue, the same approach can be used. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@max-rocket-internet @antonbabenko can we pass |
I am still sceptical for this approach as this is not best pattern to follow. If we want create such resources then we should rather follow this approach https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/targetgroupbinding/targetgroupbinding/ |
@daroga0002 We have ALB created by different TF module and MNG creation creates ASGs which would not have |
Because Managed Node groups are |
@daroga0002 MNG Still allows us to pass LT which can be used to set |
yup, so then use that approach which is valid one |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
This issue has been resolved in version 18.0.0 🎉 |
@antonbabenko - marked as resolved, but I still don't understand the context how. I've same situation as @kkapoor1987 where mentioned before, we have deployed our own ALB and things related to it via TF - and now and in the near future there's no possibility to use mentioned AWS ALB Controller. I've also started to migrate our self managed workers to use managed worker groups directly from module in 18.7.2. So what's the final point for this topic ? Is there any possibility to pass target_group_arn somehow to managed node group ? @kkapoor1987 - did you managed to pass that issue ? If so - would you be kind to show me how ? |
@mprzygrodzki there aren't any options to pass That said, there isn't anything for us to do here in this module. Users can take the outputs and grab the autoscaling groups created and create the ALB attachments outside of this module |
@bryantbiggs - ok, thanks for clarification. |
@mprzygrodzki I was able to make it work by following #1539 (comment) Its not perfect but if you have ASG info then you can |
It got easier in
|
@kkapoor1987 @mconigliaro - yes, i'm using similar - as far as I remember, the only thing which breaks a little this approach is that you have to create node groups first cause for_each is not waiting for them. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
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_groupsDescribe alternatives you've considered.
Currently to mitigate this issue we created separate resource (thanks to aws/containers-roadmap#709 (comment) ) :
So this part can be added in node_group submodule
The text was updated successfully, but these errors were encountered: