x509: certificate is valid for 10.96.0.1, 172.18.255.243, not 120.79.23.226

Posted huhyoung

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了x509: certificate is valid for 10.96.0.1, 172.18.255.243, not 120.79.23.226相关的知识,希望对你有一定的参考价值。

服务器:阿里云服务器

master:120.79.23.226

node:39.108.131.246

系统:Centos 7.4

 

node节点加入集群中是报错:

 x509: certificate is valid for 10.96.0.1, 172.18.255.243, not 120.79.23.226

具体详细信息如下:

技术分享图片

通过网上查找:https://stackoverflow.com/questions/46360361/invalid-x509-certificate-for-kubernetes-master

受到这篇文章的启示,进行重置集群试试

技术分享图片

 重置完之后,在进行初始化集群,加上参数:--apiserver-cert-extra-sans=120.79.23.226

技术分享图片

最后node节点执行命令加入集群就没有报错了。

以上是关于x509: certificate is valid for 10.96.0.1, 172.18.255.243, not 120.79.23.226的主要内容,如果未能解决你的问题,请参考以下文章

docker报错: x509: certificate has expired or is not yet valid

x509: certificate has expired or is not yet valid: current time 问题解决

rancher-webhook x509: certificate has expired or is not yet valid

docker pull 失败报错:x509: certificate has expired or is not yet valid

docker报错: x509: certificate has expired or is not yet valid

带你解决 docker 拉取镜像报错:x509: certificate has expired or is not yet valid