Manual LB Creation with AWS Load Balancer Controller

0

We would like to manually create the Load Balancer for use with containers (EKS/ECS). And then, use the load balancer with the AWS Load Balancer Controller. ie. Multiple containers/apps on a single load balancer. I know we use the group.name annotation to ensure all items use the same load balancer, but how do we ensure they (or at least the first app) uses that load balancer we created, and not have the AWS Load Balancer Controller spin up and use a different Load Balancer?

1回答
1
承認された回答

Hi jeffp2016,

You can manually create, maintain and manage a Load Balancer without Kubernetes control. Thereafter, you can associate the Load Balancer with your ECS/EKS using the TargetGroupBinding attribute.

TargetGroupBinding feature enables you to expose your Kubernetes applications to the external clients through an already existing target group on the AWS Elastic Load Balancer, which was provisioned through AWS console / AWS CLI / CloudFormation etc. What this gives you is the flexibility and independence so that you do not need to use a native method such as Kubernetes service type of Load Balancer or Kubernetes Ingress to expose your application(s) to external clients.

This approach basically introduces decoupling between Kubernetes services/ingress and the AWS Network or Application load balancer used in the environment.

For your convenience, the link below provides a step by step guide to the same implementation/solution: https://catalog.workshops.aws/eks-immersionday/en-US/services-and-ingress/targetgroupbinding

回答済み 10ヶ月前
  • But there isnt a way to share an ALB and allow the AWS Load Balancer Controller to use that and create target groups for that? We have full apps (like, Vault, or PaperLess, or Rancher, or EJBCA, etc) not microservices we are looking to run/setup. Each 'thing' that needs something from the LB Controller is a full system and has a distinguished URL.

    But, the other info to not only share an LB and a single target group is interesting, thank you.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ