by sgt · 1w ago · 0 comments
Yeah that's what I thought. Perhaps just put HAProxy in front and then let k3s know about it?
For load balancing across a proper cluster then you can either provision an external load balancer (like keepalived) or you can look into something like MetalLB which runs entirely on-cluster (but you need BGP support for true load balancing).
In a cloud cluster (like AWS EKS) you get load balancers automatically just by provisioning a LoadBalancer type Service in Kubernetes.
or use the Gateway/Ingress abstractions that basically do this automatically, where you just expose services via them, and they handle the routing
looks like the above is documented at: https://www.haproxy.com/documentation/kubernetes-ingress/
the nodeport way would basically be what you'd do with compose, where you map the host (node) ports to the container ones