1.问题重现
1 | [root@leoheng-k8s ~]# systemctl enable kubelet && systemctl start kubelet |
2.问题处理
1.关闭selinux、firewalld,并且把cgroup设置与docker一样
2.查看官方文档
The kubelet is now restarting every few seconds, as it waits in a crashloop for kubeadm to tell it what to do. This crashloop is expected and normal, please proceed with the next step and the kubelet will start running normally.
3.执行k8s的初始化
1 | [root@leoheng-k8s ~]# kubeadm init |
4.重新启动kubectl服务
1 | [root@leoheng-k8s ~]# systemctl status kubelet |
- 本文作者: Leoheng
- 本文链接: http://www.leoheng.com/2021/01/31/kubelet服务启动失败问题处理/
- 版权声明: Design by leoheng