-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cluster does not initialize properly, kindnet times out and crashes. #1461
Comments
kindnetd is failing here because it can't reach the apiserver, can you tell me more about your host environment and exactly how you ran kind? |
specifically I suspect this is the upstream bug kubernetes/kubernetes#71305, which has the following options:
|
I do have legacy iptables:
|
Will try to use the kind from head and see what the results are and report back. |
paste the |
|
That seems the problem, is missing all the What is kube-proxy logging |
Yep, absolutely seems
This is also with what is on the latest master. I also just noticed that the issue that Ben linked was with |
I think you might have to switch iptables to use the legacy backend. I'm not having this issue on a work machine that i'm pretty sure is nft backed though 🤔 I'll double check that config. |
google work machine (on which kind works...)
the distro is customized debian-testing |
|
So I'm pretty convinced that on iptables_nft systems the current mitigation is to switch to iptables legacy with update-alternatives and then reboot the host, which is not super great. We can do better. |
I've reproduced this on k8s HEAD after a report from John, and confirmed that the switch to legacy iptables mitigates. |
#1508 should fix this. |
1508 is in, I've confirmed that it fixes it in my environment. please re-open if you continue to see this. |
I encountered the same problem. Most distributions probably enable it by default, but in the case of distributions like Gentoo Linux, you should configure it properly. |
I imagine that's kube-proxy in upstream Kubernetes requiring this. Kind inherets all upstream host requirements except swap disabled which we allow (though it causes issues). |
I encountered the same problem with running
I think it is not exhaustive list of course, but may be helpful for someone. |
I know it've been 2 year but thanks man, i try to setup k8s and kind on gentoo, it come to the point I want to switch my os but you saved me |
Same for me in Ubuntu 22.04, loading the following kernel modules did the trick:
|
ubuntu in WSL or the normal ubuntu distro? |
Actually KDE Neon on "bare metal" laptop |
Thank you very much! it solved my problem using a custom kernel 6.10 |
What happened:
CoreDNS fails to start, and Kindnet has timeouts in their logs:
What you expected to happen:
CoreDNS containers to start, and kindnet not to crash
How to reproduce it (as minimally and precisely as possible):
kind create cluster
kubectl -n kube-system logs kindnet-xxxxx
Environment:
kind version
): 0.7.0kubectl version
): 1.17.0docker info
): 19.03.8/etc/os-release
): GentooThe text was updated successfully, but these errors were encountered: