-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load Balancer on ingress goes to unused servers #174
Comments
same here. IMHO LB should not get targets for nodes which are not workers... |
Or as an alternative LB can remove the target if it is unhealthy for some period. So your target will be removed from LB |
You can manually exclude nodes from the LB until (if ever) this is automated: #182 (comment) |
Just ran into this issue where we have 25+ nodes in a cluster (breaking the Hetzner load balancer limit) and the Service was pointing to all nodes even though some nodes can't even run the LoadBalancer'd application. Would be very nice to dynamically update the LoadBalancer based on whether or not a node has a Pod that is running the LoadBalancer'd application. |
@RyanSquared i guess you can exclude this node with annotations from previous comment |
We have 23 nodes that we're considering "general purpose"/"untainted", and at some point I think we're gonna have to dedicate some nodes specifically for load balancer services and have every node labeled as excluded. |
This is how Kubernetes handles it right now. Since Kubernetes 1.21 the |
can you give us a hint, which annotation exactly, @Shadowghost? |
The one I mentioned here: #182 (comment) |
ah, so I annotate nodes. makes sense since controller nodes will be quite static. Thanks for the insight! |
I will close the issue here, as the Cloud Controller Manager is not in charge of "selecting" the nodes. @Shadowghost already posted the k8s solution to exclude the nodes: #182 (comment) |
CCM has support for this annotation as mentioned here "load-balancer.hetzner.cloud/node-selector" https://pkg.go.dev/github.com/hetznercloud/hcloud-cloud-controller-manager/internal/annotation#Name |
I have a 7 node kubernetes cluster with nginx-ingress.
If ingress is not deployed on all nodes; Load Balancer goes to mixed health. Can we go on green?
The text was updated successfully, but these errors were encountered: