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