Search code examples
kubernetesamazon-ec2kubernetes-ingressamazon-eksingress-controller

AWS EKS Group NLB as ALB but with different ports


To define a VPC Link into API Gateway we have to declare an NLB in eks (LoadBalancer service) to access the pod in the VPC.

When we define ingress resource, we can group them into one ALB with the annotation alb.ingress.kubernetes.io/group.name

It seems not possible to do the same with multiple service as a network load balancer. Is it possible ? Or just a bad idea to expose multiple micro-service (with different endpoint) on the same NLB with port as discriminant ?


Solution

  • Quick answer: Not possible as of today

    AWS LB ingress controller supports ALB and NLB, but keep in mind that the ALB ingress controller:

    • watches the Ingress objects with alb.ingress.kubernetes.io/* annotations for ALB
    • also watches Service objects with service.beta.kubernetes.io/* annotations for NLB

    As of I am writing this, there are no annotations under service.beta.kubernetes.io/* that implements want you need.