Kubernetes报错Failed to get system container stats for "/system.slice/kubelet.service"
tail -f /var/log/message
Nov 14 07:12:51 image kubelet: E1114 07:12:51.627782 3007 summary.go:92] 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" Nov 14 07:12:51 image kubelet: E1114 07:12:51.627824 3007 summary.go:92] Failed to get system container stats for "/system.slice/docker.service": failed to get cgroup s tats for "/system.slice/docker.service": failed to get container info for "/system.slice/docker.service": unknown container "/system.slice/docker.service"
在kubelet中追加配置
--runtime-cgroups=/systemd/system.slice --kubelet-cgroups=/systemd/system.slice
参考资料
PS:笔者尝试过可行