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
control plane load balancing does not work #454
Comments
same here |
Kubekey uses kube-vip to deploy ha cluster, same issue found and can be solved by add node cidr into kube-proxy configuration. |
me too os:Rocky Linux release 9.2 |
Has anyone solved this problem yet? |
I'm still fuzzy on the details, but in the issue linked by @lwabish, it looks like the issue was resolved by telling the proxy service to ignore the subnet the control plane nodes live on. my guess is there is something like a race condition being generated. i added that subnet to the |
I had a similar issue, but using kubespray and metallb. The LB IP from the CP was gone, and I got the same error messages as above. Fortunately, Kubespray has a way to specify this exclusion --> https://github.com/kubernetes-sigs/kubespray/blob/747d8bb4c2d31669b2d7eed2b38bc4da2c689fab/roles/kubernetes/control-plane/defaults/main/kube-proxy.yml#L68 Correction, after applying the config changes and rerunning the kubespray playbooks, the error still occurs. I need to double check if the config made it's way through or not...
EDIT2: the kube-proxy configMap was not modified yet. But I doupt it is actually the issue, since there are no logs mentioning proxy deleting this IP (10.128.5.1), and I have |
This worked for me. My kubeadm-config.yaml
|
Yeah we should better add this to the doc |
This is now part of the documentation. |
Describe the bug
control plane load balancing does not work
To Reproduce
Steps to reproduce the behavior:
init cluster with
Expected behavior
control plane load balancing with ipvs and vip.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Kube-vip.yaml
:Additional context
can not see ipvs loadbalaning with vip 192.168.72.200
kube-vip pod logs
The text was updated successfully, but these errors were encountered: