-
Notifications
You must be signed in to change notification settings - Fork 1k
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
cpu and memory cgroup hierarchy not unified #2632
Comments
Hi @christian667, this is an issue with the latest kubelet rather than CRI-O, can you try to apply this patch which unfortunately did not make it into v1.15.1: kubernetes/kubernetes#80121 |
@saschagrunert Thanks for the quick response - will this be part of the next minor kubelet release? When will this be merged into the stable packages? Should I use cri-o 1.13 (seems to work) for deployment and upgrade to 1.15 later (with the kubelet fix available), wait for the fix to be public available (is this a matter of days?) or better build kubelet all by myself? |
You should be able to get around this with the |
@mariusgrigoriu Which arguments should I provide with --runtime-cgroups and --kubelet-cgroups ? /systemd/system.slice ? |
Depends on your cgroup layout. Looks like you might be putting kubelet into /system.slice Our cgroups looks like this in
And our flags are like this:
I'm not saying this is correct, but it is based on the k8s upstream recommendations and seems to work for us. |
This worked for me just fine:
Should I close this issue? |
If there are no further issues right now yes. I will follow up with the fix in the next patch release of Kubernetes. Thanks 🙏 |
Thanks for the help! |
Description
Trying to setup a fresh ubuntu 18.04 (minimal) based kubernetes cluster using cri-o leads to
server.go:273] failed to run Kubelet: failed to get the kubelet's cgroup: cpu and memory cgroup hierarchy not unified. cpu: /system.slice, memory: /
Steps to reproduce the issue:
Describe the results you received:
kubeadmin
journalctl -xeu kubelet
Describe the results you expected:
Successful initialized kubernetes master
Additional information you deem important (e.g. issue happens only occasionally):
Output of
crio --version
:Output of
dpkg -l|grep -i kube
:Additional environment details (AWS, VirtualBox, physical, etc.):
On prem dedicated root server
The text was updated successfully, but these errors were encountered: