主机重启后k8s kubelet无法自动启动问题解决梳理

1.问题描述

OS Version:CentOS Linux release 7.9.2009 (Core)

K8S Version:Kubernetes v1.20.4

K8S安装配置完成后,重启服务器发现,kubelet没有正常启动(systemctl status kubelet)

命令:

systemctl status kubelet

[root@centos79-3 ~]# systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
   Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/kubelet.service.d
           └─10-kubeadm.conf
   Active: activating (auto-restart) (Result: exit-code) since Wed 2023-10-11 10:08:43 CST; 1s ago
     Docs: https://kubernetes.io/docs/
  Process: 8583 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255)
 Main PID: 8583 (code=exited, status=255)

Oct 11 10:08:43 centos79-3 kubelet[8583]: goroutine 148 [chan receive]:
Oct 11 10:08:43 centos79-3 kubele

你可能感兴趣的:(kubernetes(k8s),kubernetes,kubelet)