问题描述
机器内核版本较低,kubelet启动异常,报错如下:
1 | Failed to start ContainerManager failed to initialize top level QOS containers: failed to update top level Burstable QOS cgroup : failed to set supported cgroup subsystems for cgroup [kubepods burstable]: Failed to find subsystem mount for required subsystem: pids |
原因分析
低版本内核的cgroup不支持pids资源的功能,
1 | cat /proc/cgroups |
正常机器的cgroup
1 | root@host:~# cat /proc/cgroups |
解决方案
1、升级内核版本,使得cgroup支持pids资源。
或者
2、将kubelet的启动参数添加 SupportPodPidsLimit=false,SupportNodePidsLimit=false
1 | vi /etc/systemd/system/kubelet.service |
文档参考:
赞赏一下