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 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen