kubectl get node查看节点报错

2021/12/3 17:06:26

本文主要是介绍kubectl get node查看节点报错,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

1、报错

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")

 

 2、执行了,还是报错

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

 

 3、解决办法

执行export KUBECONFIG=/etc/kubernetes/admin.conf,问题解决

 



这篇关于kubectl get node查看节点报错的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程