当前位置:   article > 正文

kubelet启动失败问题_execstart=/usr/bin/kubelet $kubelet_kubeconfig_arg

execstart=/usr/bin/kubelet $kubelet_kubeconfig_args $kubelet_config_args $ku

问题:

错误信息:

  1. Process: 2226953 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
  2. 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"]

  1. {
  2. "registry-mirrors": ["https://ogeydad1.mirror.aliyuncs.com"], "exec-opts": ["native.cgroupdriver=systemd"]
  3. }

4、重启docker

  1. systemctl daemon-reload
  2. systemctl restart docker

 5、重启kubelet

  1. systemctl daemon-reload
  2. systemctl restart kubelet

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/73965
推荐阅读
相关标签
  

闽ICP备14008679号