Error: : Failed to get system container stats for "/system.slice/kubelet.service" failed to get cgroup stats for "/system.slice/kubelet.service": failed to get container info for "/system.slice/kubelet.service": unknown container "/system.slice/kubelet.service

System info

  • Ubuntu 18.04
  • Docker 18.09.7
  • kubelet v1.15.2

解决方法:

sudo vim /etc/systemd/system/kubelet.service.d/11-cgroups.conf

添加以下内容:


[Service]
CPUAccounting=true
MemoryAccounting=true

执行:


systemctl daemon-reload
systemctl restart kubelet