Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Nginx Ingress creating Classic Load Balancer instead of Application Load Balancer

I am trying to setup Application Load Balancer to forward traffic to Nginx Ingress controller in AWS. To set up Nginx Ingress controller, I am using this YML which I got it from the installation instructions.

After deployment, everything is working fine and traffic is being forwarded to EKS pods correctly. However, the above YML file is creating 'Classic Load Balancer' in aws where as I want to create 'Application Load Balancer'. I changed 'service.beta.kubernetes.io/aws-load-balancer-type: elb' to 'service.beta.kubernetes.io/aws-load-balancer-type: alb' but still it is creating classic load balancer in AWS.

Please help in setting up the desired LB. Thanks in advance.

like image 607
Prerak Tiwari Avatar asked Oct 07 '20 03:10

Prerak Tiwari


1 Answers

If you want to use ALB (Application Load Balancer) instead of NLB (Network Load Balancer), you need to use AWS ALB Ingress Controller with External DNS, not the NGINX Ingress Controller. See the details in this official doc and this official AWS ALB Ingress Controller doc

I hope that answers your problems.

like image 171
gumelaragum Avatar answered Oct 02 '22 15:10

gumelaragum