zhangyanK零S
多master节点多node节点的 Kubesphere升级V2.1.1后,master0节点在凌晨出现Notready状态,进去发现kubelet服务已经不能启动,重启kubelet服务依然失败,信息如下:
[root@master0 conf]# systemctl status kubelet.service -l
● kubelet.service - Kubernetes Kubelet Server
Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2020-11-06 12:05:20 CST; 7s ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
Process: 10669 ExecStart=/usr/local/bin/kubelet $KUBE_LOGTOSTDERR $KUBE_LOG_LEVEL $KUBELET_API_SERVER $KUBELET_ADDRESS $KUBELET_PORT $KUBELET_HOSTNAME $KUBELET_ARGS $DOCKER_SOCKET $KUBELET_NETWORK_PLUGIN $KUBELET_VOLUME_PLUGIN $KUBELET_CLOUDPROVIDER (code=exited, status=255)
Main PID: 10669 (code=exited, status=255)
Nov 06 12:05:20 master0 kubelet[10669]: I1106 12:05:20.774709 10669 feature_gate.go:216] feature gates: &{map[CSINodeInfo:true ExpandCSIVolumes:true RotateKubeletClientCertificate:true VolumeSnapshotDataSource:true]}
Nov 06 12:05:20 master0 kubelet[10669]: I1106 12:05:20.781280 10669 mount_linux.go:168] Detected OS with systemd
Nov 06 12:05:20 master0 kubelet[10669]: I1106 12:05:20.781490 10669 server.go:410] Version: v1.16.7
Nov 06 12:05:20 master0 kubelet[10669]: I1106 12:05:20.781708 10669 feature_gate.go:216] feature gates: &{map[CSINodeInfo:true ExpandCSIVolumes:true RotateKubeletClientCertificate:true VolumeSnapshotDataSource:true]}
Nov 06 12:05:20 master0 kubelet[10669]: I1106 12:05:20.781908 10669 feature_gate.go:216] feature gates: &{map[CSINodeInfo:true ExpandCSIVolumes:true RotateKubeletClientCertificate:true VolumeSnapshotDataSource:true]}
Nov 06 12:05:20 master0 kubelet[10669]: I1106 12:05:20.782068 10669 plugins.go:100] No cloud provider specified.
Nov 06 12:05:20 master0 kubelet[10669]: I1106 12:05:20.782113 10669 server.go:526] No cloud provider specified: "" from the config file: ""
Nov 06 12:05:20 master0 kubelet[10669]: I1106 12:05:20.782142 10669 server.go:773] Client rotation is on, will bootstrap in background
Nov 06 12:05:20 master0 kubelet[10669]: E1106 12:05:20.786649 10669 bootstrap.go:265] part of the existing bootstrap client certificate is expired: 2020-10-24 09:40:40 +0000 UTC
Nov 06 12:05:20 master0 kubelet[10669]: F1106 12:05:20.786706 10669 server.go:271] failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory
重启服务器后,依然不能启动kubelet服务器
@Feynman 大神帮忙看一下是什么原因吧