-
-
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
feat: Add load_balancers
parameter to associate a CLB (Classic Load Balancer) to worker groups ASG
#992
feat: Add load_balancers
parameter to associate a CLB (Classic Load Balancer) to worker groups ASG
#992
Conversation
Please can you duplicate this change in the ASG in |
@hacker65536 Thanks for your contribution. I was just wondering what is your actual use case. What you're trying to achieve by adding a load balancer to all your worker nodes in a kubernetes cluster. Is the kubernetes model does't fit here (using k8s service or ingress) ? |
I'm trying to using clb + envoy to handle grpc app. |
workers_launch_template.tf
Outdated
@@ -37,6 +37,11 @@ resource "aws_autoscaling_group" "workers_launch_template" { | |||
"target_group_arns", | |||
local.workers_group_defaults["target_group_arns"] | |||
) | |||
load_balancers = lookup( | |||
var.worker_groups[count.index], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this line be:
var.worker_groups_launch_template[count.index],
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
load_balancers
parameter to associate a CLB (Classic Load Balancer) to worker groups ASG
Thanks @hacker65536 for your contribution. |
Using K8s service LBs makes it harder to recreate the cluster, because you need to use e.g. Route 53 to switch traffic from the old to the new cluster. So I'd use service LBs and (current) AWS ingresses only for dev clusters that can be deleted without care. So this feature should generally be useful for any production setup. Just my two cents 😃 |
Great. Thanks @mumoshu for the clarification. |
… Balancer) to worker groups ASG (terraform-aws-modules#992)
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
Add
load_balancers
for clb be associated to asg.Resolves #1036
Checklist