-
Hi, I've been using k3s (+Longhorn) for years without issues, but I can't seem to figure out this one. Any help would be appreciated. This issue appeared after my single node restarted following an electricity outage. I don't think that's actually relevant, because it's plugged into a UPS and was shutdown gracefully, but you never know... Thank you in advance to anyone who could give me a few ideas of where I should look next to fix this problem. Environment
Click to expand
Click to expandkubelet-arg:
- "image-gc-low-threshold=20"
- "image-gc-high-threshold=50"
debug: true Symptoms
These symptoms make me think that somehow the main control loop of K8s is not actually running, as there is no reconciliation between the desired state and the actual state of the cluster. What I tried
LogsYou can download a log file with debug enabled here (23MB). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
It looks like the apiserver is up, but not ready/healthy for some reason. You can run |
Beta Was this translation helpful? Give feedback.
-
So your node is stuck here, waiting for the APIServerReady channel to be closed: Lines 515 to 527 in 8aa543e That occurs here: k3s/pkg/daemons/control/server.go Lines 440 to 475 in 8aa543e WaitForAPIServerReady polls /readyz, as seen here: Lines 55 to 104 in 8aa543e You could try doing |
Beta Was this translation helpful? Give feedback.
-
Thanks for the pointers. I was able to get some logs from SIGABRT, but I didn't find anything more than the lines of code you had already linked. However, I stumbled upon the k3s certificate command, and I tried This was really tricky for me to debug, and in the end it was pure luck. Maybe some additional logging statements might be useful? Thanks again! |
Beta Was this translation helpful? Give feedback.
Thanks for the pointers. I was able to get some logs from SIGABRT, but I didn't find anything more than the lines of code you had already linked.
However, I stumbled upon the k3s certificate command, and I tried
k3s certificate rotate
just in case, and it worked!So some certificate, somewhere was probably invalid, but I don't know why and I don't which one it was.
This was really tricky for me to debug, and in the end it was pure luck. Maybe some additional logging statements might be useful?
Thanks again!