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 réponse
0
Réponse acceptée

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
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions