kubernetes启动错误(Unabletoconnecttotheserver:x509:certificatesignedbyunknownauthority)怎么解决
这篇文章主要介绍了kubernetes启动错误(Unable to connect to the server: x509: certificate signed by unknown authority )怎么解决,具有一定借鉴价值,需要的朋友可以参考下。下面就和我一起来看看吧。
创新新互联,凭借10余年的成都网站建设、成都网站制作经验,本着真心·诚心服务的企业理念服务于成都中小企业设计网站有上千案例。做网站建设,选成都创新互联公司。
kubernetes启动时候报错如下:
Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
出现这样的报错是什么原因呢?其实有可能是忘记执行脚本程序了。
1. mkdir -p $HOME/.kube
2.sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
3.sudo chown $(id -u):$(id -g) $HOME/.kube/config
只要执行了脚本程序,就会正常了
1. [root@worker3 shell]# kubectl get node
2. NAME STATUS ROLES AGE VERSION
3. worker3 Ready master 1m v1.10.0
以上就是kubernetes启动错误(Unable to connect to the server: x509: certificate signed by unknown authority )怎么解决的详细内容了,看完之后是否有所收获呢?如果想了解更多相关内容,欢迎来创新互联行业资讯!
文章名称:kubernetes启动错误(Unabletoconnecttotheserver:x509:certificatesignedbyunknownauthority)怎么解决
本文URL:http://ybzwz.com/article/gpdssj.html