欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

kubectl get node报Unable to connect to the server: x509: certificate signed by unknown authority。。。

程序员文章站 2022-05-01 09:38:35
...

报错信息如图所示

kubectl get node报Unable to connect to the server: x509: certificate signed by unknown authority。。。

 执行如下命令即可

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

显示结果如下

kubectl get node报Unable to connect to the server: x509: certificate signed by unknown authority。。。

 

相关标签: k8s