kubelet提示Failed to run kubelet“ err=“failed to run Kubelet: misconfiguration: kubelet cgroup driver:
环境docker:20.10.7kubernetes: v1.21.2错误信息“Failed to run kubelet” err=“failed to run Kubelet: misconfiguration: kubelet cgroup driver: “systemd” is different from dock…er: “cgroupfs””原因docker和kubernetes所
·
环境
docker:20.10.7
kubernetes: v1.21.2
错误信息
“Failed to run kubelet” err=“failed to run Kubelet: misconfiguration: kubelet cgroup driver: “systemd” is different from dock…er: “cgroupfs””
原因
docker和kubernetes所使用的cgroup不一致导致
解决方法
在docker中修改配置文件
cat > /etc/docker/daemon.json <<EOF
{"exec-opts": ["native.cgroupdriver=systemd"]}
EOF
重启docker
systemctl restart docker
更多推荐
已为社区贡献1条内容
所有评论(0)