錯誤提示:
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
查看證書有效期,已過期24天
解決方法:
0、備份cattle-webhook-tls證書的yaml文件(yaml文件里面包含了tls.crt和tls.key信息)
1、 刪除過期的cattle-webhook-tls證書
2、重啟rancher-webhook pod
3、再查看證書有效期,已經是1年了
驗證結果:
