AWS EKS - Load Balancer (Ingress)

4/1/2021

I am deploying kubernetes nginx-ingress on AWS. Is there any way to prevent auto creation of network loadbalancer and me assigning an already existing load balancer in the config?

If not, is there any way to provide custom name to AWS NLB from within the nginx ingress configuration?

-- Hitesh jain
amazon-eks
aws-load-balancer
kubernetes
kubernetes-ingress
nginx-ingress

1 Answer

4/23/2021

No, what you're asking for is not supported. There's no way to configure nginx ingress controller to create NLBs with specific names or use existing NLBs.

You can however do this manually if you set the nginx ingress controller serviceType to NodePort and then manually register the targets into the NLB (via the console, CLI etc).

Note that it's not ideal to have things configured outside of Kubernetes in this way because there is a tendency to forget that ingress changes aren't synced to the NLB.

Make sure to check the security groups of your nodes to allow traffic from the load balancer to the exposed ports on your nodes.

-- Jason
Source: StackOverflow