rancher2.5.8添加集群提示证书错误
2023-11-15 本文已影响0人
彩色的炮灰
1、rancher2.5.8 添加新的k8s集群,添加节点后,节点运行正常,但是rancher控制台提示错误:Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": x509: certificate has expired or is not yet valid: current time 2023-11-16T21:27:50+08:00 is after 2022-02-28T09:23:29Z
image.png
2、登陆rancher控制台,查看证书有效期,已过期好久了。
image.png
3、备份cattle-webhook-tls证书的yaml文件(yaml文件里面包含了tls.crt和tls.key信息)
image.png
4、 删除过期的cattle-webhook-tls证书
image.png
5、重启rancher-webhook pod
image.png
6、再查看证书有效期,已经是1年了
image.png