How does a `LoadBalancer` Service on EKS get provisioned, and what are the target modes?
AdvancedConceptServices, Networking, Ingress & Gateway API
Answer
With the AWS Load Balancer Controller, a Service with loadBalancerClass: service.k8s.aws/nlb creates an NLB. In instance mode it targets NodePorts; in ip mode (annotation service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip) it registers Pod IPs directly, skipping an extra hop, and requires VPC-routable Pod IPs. Without the controller, the legacy in-tree controller makes a Classic LB.