赞
踩
问题:
错误信息:
- Process: 2226953 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
- Main PID: 2226953 (code=exited, status=1/FAILURE)
查看kubelet运行日志:
journalctl -xefu kubelet
docker驱动与Kubelet的驱动程序不同导致
1、查看docker驱动
docker info|grep Driver
Cgroup Driver: cgroupfs
2、查看kubelet驱动
systemctl show --property=Environment kubelet |cat
3、修改docker驱动,查看/etc/docker/daemon.json文件,没有的话,手动创建,添加以下内容
"exec-opts": ["native.cgroupdriver=systemd"]
- {
- "registry-mirrors": ["https://ogeydad1.mirror.aliyuncs.com"], "exec-opts": ["native.cgroupdriver=systemd"]
- }
4、重启docker
- systemctl daemon-reload
-
- systemctl restart docker
5、重启kubelet
- systemctl daemon-reload
-
- systemctl restart kubelet
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。