mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 15:21:05 -05:00
Step 7c of #8914: while a cluster has EKS Auto Mode load balancing on, an Ingress whose IngressClass names the eks.amazonaws.com/alb controller, or that names no class while such a class is the default, gets an Application Load Balancer. - Floci installs the IngressClassParams kind (eks.amazonaws.com/v1) while load balancing is on, through the shared applyAutoModeManifest step, and removes it once it is off. - The load balancer is named k8s-<namespace>-<name>-<hash>, with the scheme and subnets of the class's IngressClassParams, else the alb.ingress.kubernetes.io/scheme annotation and the cluster's subnets, internal by default. Ingress names hash their kind, so a Service and an Ingress of one name don't collide. - An HTTP listener on port 80 answers a fixed 404 or forwards to the Ingress's defaultBackend. Each rule's paths become listener rules in the Load Balancer Controller's order: the rules as listed, and within each, Exact paths first, then Prefix paths longest first, then ImplementationSpecific ones. - Target groups sit on each backend Service's TCP NodePort, with the cluster's node registered and an HTTP health check at the healthcheck-path annotation's path. - A changed scheme replaces the load balancer, changed subnets and health-check paths are applied, and an Ingress whose class names missing IngressClassParams keeps its load balancer as it is. - The Services reconciler's ELBv2 lookups, node registration and kubectl calls move to EksAutoModeElb and EksAutoModeKubectl, shared with Ingresses.