-
Notifications
You must be signed in to change notification settings - Fork 488
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
Setting Kong Proxy to use an existing Load Balancer #743
Comments
Hello @CarmineDeloitte 👋 By LoadBalancer do you mean AWS' ELB/ALB/NLB? Or do you have an existing Service of type If it's the former than I'm not sure. It seems that you can use a |
Hello @pmalek Yep I have an ELB load balancer in AWS, but how can I use the TargetGroupBinding ? |
Hm to be honest, I'm not sure. From what I can read at https://github.com/kubernetes-sigs/aws-load-balancer-controller it seems that it works with ALB and NLB. Which type of a LB specifically are you having? ELB in AWS is a generic term, no? I believe you should be able to use the apiVersion: elbv2.k8s.aws/v1beta1
kind: TargetGroupBinding
metadata:
name: my-tgb
spec:
serviceRef:
name: awesome-service # route traffic to the awesome-service
port: 80
targetGroupARN: <arn-to-targetGroup> If that's not the case, don't hesitate to reach us. |
Yep, |
My understanding is that either the controller I linked is pre-installed in AWS clusters or you install it and then you can use that CRD I mentioned - This seems like a general kubernetes and AWS issue (or question rather). Let's leave it open for not, in case anyone stumbles across a similar problem and posts a solution but from our standpoint it's rather unlikely that we'll go research this matter from our side. |
Hello, I'm interested in this question as well because it's very useful if you want to create the infrastructure by using Terraform, and you have to create some Route53 A-records assigned to this LB during a deployment. But you cannot do this due to not existing LB. |
I have this question too. I wanted to create a Load Balancer via terraform and make Kong use it when installing via the helm chart. I want to do this to avoid the LB DNS to change whenever I uninstall/reinstall the Kong helm chart. Otherwise there'll be a lot of downtime if someone does this either intentionally or accidentally. It seems to me too volatile/fragile. |
Hello, I'm also interested in this question, did anyone find an answer how to use the TargetGroupBinding together with the chart? |
Hello,
Maybe I'm a bit lost in the documentation but seems impossible to set the kong proxy to use an existing load balancer.
Let's say I have an aws eks cluster, with a load balancer.
How can I set the proxy in order to let it use the already created one?
Is there any flag, any annotation to use?
I also tried to specify this annotation service.beta.kubernetes.io/aws-load-balancer-internal: true, but with no luck.
Funny thing is that in the yaml manifest instead, it's possible to set (at least) the LoadBalancerIP.
Any suggestion will be really appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: