-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
kubelet不断重启:mountpoint for cpu not found #640
Comments
#centos stream 9 默认使用cgroup2# |
这个回答可能对题主没有帮助了,我在网上直接搜索,这个页面提的问题在搜索上面排名很高,但是没有人回答,给一个我这边遇到的问题原因,希望后面有相同问题的人可以少花点时间。 原因: Kubernetes 从 1.19 起支持 v2 版本,如需运行 1.19 之前的老版本,需要宿主机 Docker 使用 cgroup v1 我宿主机是ubuntu22.04,而ubuntu自21.04版本后的版本(不包含21.04)linux内核改用了v2版本,拉起的k8s是1.17.17的版本,还是使用的cgroup v1 解决方案:
|
文档版本
k8s v1.6.6
containerd 1.6.1
centos stream 9 ARM版本
现象描述
kubelet不断重启
journalctl -u kubelet有如下报错:
server.go:605] failed to get the kubelet's cgroup: mountpoint for cpu not found.
server.go:271] failed to run Kubelet: mountpoint for cpu not found
kubelet.service: Main process exited, code=exited, status=255/EXCEPTION
kubelet.service: Failed with result 'exit-code'.
Stopped Kubernetes Kubelet.
或者命令行直接输入kubelet有如下报错:
I0305 15:57:27.329438 16240 server.go:410] Version: v1.16.6
I0305 15:57:27.329642 16240 plugins.go:100] No cloud provider specified.
W0305 15:57:27.329660 16240 server.go:549] standalone mode, no API client
W0305 15:57:27.329702 16240 server.go:605] failed to get the kubelet's cgroup: mountpoint for cpu not found. Kubelet system container metrics may be missing.
F0305 15:57:27.331958 16240 server.go:271] failed to run Kubelet: mountpoint for cpu not found
The text was updated successfully, but these errors were encountered: