Skip to content
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

Re-write load-balancer to take advantage of know control-plane members #66

Closed
thebsdbox opened this issue Jul 29, 2020 · 5 comments
Closed
Labels
control plane outside-cluster help wanted Extra attention is needed
Milestone

Comments

@thebsdbox
Copy link
Collaborator

At the moment with the change to leaderElection we're mainly focussed on just providing VIP services. It would be good to investigate if we can grab all controlPlane members regularly and use this as the backend array for load-balancing.

@thebsdbox thebsdbox added control plane outside-cluster help wanted Extra attention is needed labels Jul 29, 2020
@dhawal55
Copy link
Contributor

Would it be possible to forward traffic received at the VIP to the Kubernetes service IP? Kube-proxy can that take care of load balancing to all API server instances

@thebsdbox
Copy link
Collaborator Author

This is for the control-plane, the TCP traffic for the load-balancers is out of cluster so would never go to the kube-proxy

@dhawal55
Copy link
Contributor

yes, I'm talking about the control plane. Once the traffic reaches the VIP (which is a kube-vip pod running on controlPlane node), we can have an ip-table rule forward the traffic to the internal kubernetes service IP.

@thebsdbox
Copy link
Collaborator Author

I'll build a cluster over the coming days and see what I need to do

Notes:
https://stackoverflow.com/questions/60100233/k8s-forwarding-from-public-vip-to-clusterip-with-iptables

@thebsdbox
Copy link
Collaborator Author

Added with IPVS in #296

@thebsdbox thebsdbox added this to the 0.4 milestone Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control plane outside-cluster help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants