mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 22:37:55 -05:00
While a cluster has Auto Mode's load balancing capability on, a LoadBalancer Service whose loadBalancerClass is eks.amazonaws.com/nlb gets a Network Load Balancer in the cluster's subnets: a TCP target group per TCP port on its NodePort, with a TCP health check and the cluster's node registered by instance ID, and a listener on the Service port. Once the node is registered, the DNS name is written to the Service's status, in a patch that names its UID. A reconciler reads the Services with kubectl every 10 seconds; each pass makes whatever a Service's ports lack and removes what dropped ports had. The load balancers carry eks:eks-cluster-name and service.eks.amazonaws.com/stack, the only keys AmazonEKSLoadBalancingPolicy lets Auto Mode set, and go with the Service, with the cluster and when its load balancing is turned off. ElasticLoadBalancing.loadBalancingOn replaces two copies of the on check. Part of #8914.