-
Notifications
You must be signed in to change notification settings - Fork 716
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
kubeadm init fails #1380
Comments
RPI is problematic and we suspect that deeper problems exist - e.g. races in the kubelet. please have a look at this solution and the related thread for failures on RPI: if this has worked before i can only suspect a flakyness that we do not account for on RPI. you can also have a deeper look at the kubelet and api-server logs
no, there were no 1.13 releases today, AFAIK.
a pod network plugin is installed only after the api server comes up. |
Thanks for quick update and the pointer to the other issue, @neolit123. That does not read so well. But what I really fail to see how this is not considered a bug. |
we need someone on RPI to debug the kubelet and pinpoint the exact problem area. |
Understood - but is there an issue open for I was thinking I could init like this but apparently the
|
Or is that maybe just not relevant for the control-plane phase? |
Now this was the plan
but
|
AFAIK, no.
you can pass the
it is relevant to the controller manager (so yes "control-plane" phase) and also kube-proxy.
try calling
please file a separate bug report about the panic including the reproduction steps. |
also 1.13.3 was released as we speak: but please still file that panic bug report for 1.13.2. |
So do I understand correctly that I need to pass the config in order to provide the I don't quite understand why I would need to run |
I don't quite get the way the contexts are used - and not checked for |
looking at the source code you might want to try:
what is the error message that you are getting?
always call |
this can only happen if the kubeconfig phase reads a corrupted kubeconfig file with missing cluster context. possible a side effect of not calling reset. but yes, panics should be fixed.... |
I am still not convinced about the missing reset. I tried this anyway
and I am getting the same thing
|
Time to open the other issue for the crash. But working around the crash - this is the config file
|
please, add
this skipping of the CP phase used to work, so something broke it. |
|
please show the contents of |
That file has a length of 0. |
posting in the panic ticket in a bit. |
related discussion at reddit: |
Cool - I didn't find that one. Sounds very familiar. Too bad that changing the timeouts (for some reason) doesn't help in my setup :-/ |
we have reports for production CNCF clusters running ARM64 where supposedly the architecture works fine. oddly enough these problems are only manifesting on RPI. |
But then it would be odd that many people get it to work on RPis - at least eventually. |
you can also try to call the kubeconfig phase as a separate step:
untested, i think this might not work. |
Unfortunately that did not work :-/
|
try adding the
the docs for init are here: |
Holy smokes - that worked! 🎉
|
I then installed flannel
and after a while - yay!
|
glad it worked out. i cannot explain why the panic happens and that needs investigation. as mentioned, at some point we need test signal to be able to catch problems on ARM. |
Yes, the panic is really odd - and still leaves me a little puzzled. |
I am so unbelievably grateful for this thread - thank you @neolit123 and everyone else involved - I finally got a Raspberry Pi 3 B to run a K8s master after three SOLID days of trying! What's weird is, the very first time I tried, I followed this tutorial and it worked great, I set up a 3 node cluster, no problem. I shut it down at night, the next day I started it up - and nothing worked! So, I re-etchered my SD cards and started afresh. Then the pain began. I tried every permutation of Docker version, Raspiian version, all sorts of flags and kernel versions, even bought a network switch and started flailing at that, must have read over 100 web pages and Github issues, nothing at all worked until I used the steps that @tcurdt used above. Anyway, THANK YOU |
Thank you soooo much..been facing this issue for almost 3 days.. |
Hey @tcurdt do we need to execute the 3 sudo sed commands?. I tried execution without them, it's still showing the same error. Help will be appreciated |
@aryansaraf018 sorry, it's already quite a while since I looked into this. I suspected some kind of race condition, and adjusting the timings may or may not help. I was hoping this is no longer necessary. |
Newer kubeadm allows you to use parches to patch the manifests
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/control-plane-flags/#patches
|
Hello ! i understand this is an old thread.I am also getting same kind issue.well, I am using WSL and trying to install k8s components. I know i can use docker desktop but i found the approach little different here in docker desktop that's why i dont want to use docker desktop anymore. everytime i do kubeinit i get this error : This error is likely caused by: If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands: Additionally, a control plane component may have crashed or exited when started by the container runtime. How can i fix this issue? not to forget i an in WSL enviroment. |
What keywords did you search in kubeadm issues before filing this one?
init
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
Versions
kubeadm version
Environment:
RPi3 B+
uname -a
):What happened?
Fresh install of
hypriotos-rpi-v1.9.0
.Then
apt-get install -y kubeadm
. So far so good.As root
kubeadm init --pod-network-cidr 10.244.0.0/16
fails with:What you expected to happen?
Finish of the init and then giving me the join command.
How to reproduce it (as minimally and precisely as possible)?
Fresh install of
hypriotos-rpi-v1.9.0
then:Anything else we need to know?
This has worked before (as in yesterday). I don't see anything that might have changed.
Unless there was a new release like today or yesterday I am running out of ideas.
I am not sure the
cni config
is a problem yet. Installingflannel
would be next on the list.The text was updated successfully, but these errors were encountered: