服务器:阿里云服务器

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

具体详细信息如下:

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

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

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

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

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

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

相关文章:

  • 2021-10-23
  • 2021-11-15
  • 2021-05-26
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-11-08
  • 2021-08-17
相关资源
相似解决方案