-
Notifications
You must be signed in to change notification settings - Fork 790
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
microk8s v1.26 daemon-kubelite crashloop with cgroup error #3895
Comments
Hi @jpalpant, I wonder if a kernel update disabled cgroups, can you have a look at https://stackoverflow.com/questions/73021599/how-to-enable-cgroup-v2-in-wsl2 Looking at the logs you attached I see
... which seems right. |
Looking on the machine, I see
I think that's the right mount for cgroup v2 to be enabled, is that right? I also do see
Is that a valid set of kernel arguments? It seems like cgroups should be enabled, but I'm not sure if there's any other place I ought to check. I do see that
|
I think I may have resolved this - I discovered that it is usually possible to enable a cgroup controller by writing to the
I found this article that suggests that you may not enable the cpu controller if any process is using "real-time scheduling". I checked for realtime processes using the After that, I was able to enable the cpu cgroup v2 controller. I did so manually for both the top-level and the "kubepods" cgroup
And that worked. At this point, I'm not sure if any kernel parameters were needed, but at the moment I have the following
It may not be necessary to enable the cgroup controllers manually either. After |
@jpalpant Thanks a lot! I habve been struggled for this error for long time! Until follow your solution systemctl stop rtkit-daemon kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=0.0.0.0 --cri-socket=unix:///run/containerd/containerd.sock --ignore-preflight-errors=all --v=5 Your Kubernetes control-plane has initialized successfully! Thanks! |
Summary
I am running microk8s v1.26 inside of WSL2 (Ubuntu 22.04) via the snap. After some unknown period of time and system updates, I noticed that microk8s wasn't behaving correctly. microk8s inspect said services were starting, but I eventually noticed that daemon-kubelite was crashlooping with this message:
Any advice on what I could look into to track this down? I expect my machine is misconfigured, but it could be something others run into. I don't have any experience with cgroups but am happy to pull more information or logs if it's helpful.
What Should Happen Instead?
daemon-kubelite should start and run normally.
Reproduction Steps
Unfortunately no, I'm not sure how I got into this situation except possibly standard Windows updates.
Introspection Report
inspection-report-20230401_225828.tar.gz
Can you suggest a fix?
Are you interested in contributing with a fix?
The text was updated successfully, but these errors were encountered: