溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

kubernetes錯誤Unable to connect to the server解決方法

發(fā)布時間:2020-05-28 17:30:19 來源:億速云 閱讀:20317 作者:鴿子 欄目:系統(tǒng)運(yùn)維
  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")

    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

  1. node NotReady

    root@ubuntu:~# kubectl get nodeNAME     STATUS     ROLES    AGE   VERSIONubuntu   NotReady   master   12m   v1.17.3

因?yàn)闆]有創(chuàng)建flannel網(wǎng)絡(luò)

    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

等待 網(wǎng)絡(luò)創(chuàng)建完成

    root@ubuntu:~# kubectl get nodeNAME     STATUS   ROLES    AGE   VERSIONubuntu   Ready    master   15m   v1.17.3

更多相關(guān)資訊:

出現(xiàn)Unable to connect to the remote server是什么意思

Genymotion啟動報(bào)錯:“unable to connect to the virtual device”的解決方法

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI