kubectl get nodes提示error: You must be logged in to the server (Unauthorized)
检查kubelet和etcd状态发现etcd有相关信息
Apr 03 09:29:36 172.17.100.177 etcd[47633]: {"level":"warn","ts":"2023-04-03T09:29:36.176+0800","caller":"rafthttp/probing_status.go:70","msg":"prober detected unhealthy status","round-tripper-name":"ROUND_TRIPPER_RAFT_MESSAGE","remote-peer-id":"f598ec4a19b3665c","rtt":"20.941334ms","error":"x509: certificate has expired or is not yet valid"}
查看证书有效期
kubeadm certs check-expiration
更新证书时间,每个主节点都要执行
kubeadm certs renew all