Is it possible to assign an existing Network Load Balancer to an AWS EKS resource via annotations?

0

Is there a way to specify an existing Network Load Balancer (using its ARN) through [annotations][1] when creating an EKS resource. Currently, the service creates its own Network Load Balancer.

Having the service create an Network Load Balancer makes our deployment a bit more complex. This is because, the service requires us to dynamically connect the API Gateway to the Network Load Balancer, while the rest of the infrastructure is already created.

I could not find any information on assigning an existing Network Load Balancer to an EKS resource. Can you provide a recommendation for this use case? [1]: https://kubernetes.io/docs/concepts/services-networking/service/#other-elb-annotations

1回答
0
承認された回答

You can use TargetGroupBinding. TargetGroupBinding is a custom resource that can expose your pods using an existing ALB TargetGroup or NLB TargetGroup. TargetGroupBinding allows you to provision the load balancer infrastructure completely outside of Kubernetes but still manage the targets with Kubernetes Service. For more information, see [TargetGroupBinding][1]. [1]: https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/guide/targetgroupbinding/targetgroupbinding/

AWS
回答済み 3年前

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

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

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

関連するコンテンツ