当前位置: 首页> 游戏> 单机 > 公司法治企业建设_金点子_汕头seo不错_北京seo教师

公司法治企业建设_金点子_汕头seo不错_北京seo教师

时间:2025/7/9 15:07:02来源:https://blog.csdn.net/Loiterer_Y/article/details/143113340 浏览次数:0次
公司法治企业建设_金点子_汕头seo不错_北京seo教师

项目场景:

之前使用工具一键部署K8S集群,并在集群部署一些服务。某天突然发现服务无法访问。


问题描述

1、执行kubectl get node节点状态均为NotReady
2、执行kubectl logs pod_name -n namespace时出现报错Internal error occurred: Authorization error (user=kubernetes,verb=get,resource=nodes,subresource=proxy)
3、执行kubectl status kubectl出现报错Unable to register node with API server” err=“Unauthorized”
4、执行systemctl status kube-apiserver出现报错Unable to authenticate the request” err=“[x509: certificate signed by unknown authority (possibly because of “crypto/rsa: verification error” while trying to verify candidate authority certificate “kubernetes”)

原因分析:

kube-apiservekubelet之间的证书过期,或者kubelet bootstrap引导出错,使得两个之间未能正常建立连接。

解决方案:

1、登录master和node所在主机,删除kubelet证书(如果不放心,删除前可先做备份)

$ rm /etc/kubernetes/ssl/kubelet.*

2、登录master和node所在主机,重启kubelet
3、重启后,节点和master之间恢复通讯,服务也可以正常访问了。

关键字:公司法治企业建设_金点子_汕头seo不错_北京seo教师

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: