authentication.go:65] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid


k8s 集群 metrics-server 組件報錯 authentication.go:65] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid

原因 :k8s集群證書更新后沒有自動重啟對呀的組件執行如下命令后解決

docker ps |grep -E 'k8s_kube-apiserver|k8s_kube-controller-manager|k8s_kube-scheduler|k8s_etcd_etcd' | awk -F ' ' '{print $1}' |xargs docker restart

metrics-server  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM