k8s无法加入master解决办法(一直卡在pre-flight check 报couldn‘t validate the identity of the API Server错)
kubernetes从节点无法加入master节点解决办法
·
在其他的帖子看到是firewall和selinux没关或者token过期的原因,但我的节点和master上述问题都没有出现,然后在报错后面看到一句certificate has expired or is not yet valid: current time 2022-06-01T21:55:58+08:00 is before 2022-07-29T04:08:09Z发现是时间没有同步的原因导致
解决办法:
[root@k8s-node2 ~]# yum install ntpdate -y #下载时间同步应用
[root@k8s-node2 ~]# ntpdate cn.pool.ntp.org #同步时间
然后再用加入master节点的命令就能成功加入了
更多推荐
已为社区贡献1条内容
所有评论(0)