您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
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")
root@ubuntu:~# kubectl get svcUnable 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")root@ubuntu:~# rm -rf $HOME/.kuberoot@ubuntu:~# mkdir -p $HOME/.kuberoot@ubuntu:~# sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/configroot@ubuntu:~# sudo chown $(id -u):$(id -g) $HOME/.kube/configroot@ubuntu:~# kubectl get svcNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEkubernetes ClusterIP 10.96.0.1 <none> 443/TCP 9m30s
先删除 $HOME/.kube
node NotReady
root@ubuntu:~# kubectl get nodeNAME STATUS ROLES AGE VERSIONubuntu NotReady master 12m v1.17.3
因为没有创建flannel网络
root@ubuntu:~# kubectl create -f kube-flannel.ymlpodsecuritypolicy.policy/psp.flannel.unprivileged createdclusterrole.rbac.authorization.k8s.io/flannel createdclusterrolebinding.rbac.authorization.k8s.io/flannel createdserviceaccount/flannel createdconfigmap/kube-flannel-cfg createddaemonset.apps/kube-flannel-ds-amd64 createddaemonset.apps/kube-flannel-ds-arm64 createddaemonset.apps/kube-flannel-ds-arm createddaemonset.apps/kube-flannel-ds-ppc64le createddaemonset.apps/kube-flannel-ds-s390x createdroot@ubuntu:~# kubectl get nodeNAME STATUS ROLES AGE VERSIONubuntu NotReady master 14m v1.17.3
等待 网络创建完成
root@ubuntu:~# kubectl get nodeNAME STATUS ROLES AGE VERSIONubuntu Ready master 15m v1.17.3
更多相关资讯:
出现Unable to connect to the remote server是什么意思
Genymotion启动报错:“unable to connect to the virtual device”的解决方法
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。