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")
成都創(chuàng)新互聯(lián)公司長期為近千家客戶提供的網(wǎng)站建設(shè)服務(wù),團隊從業(yè)經(jīng)驗10年,關(guān)注不同地域、不同群體,并針對不同對象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為漢川企業(yè)提供專業(yè)的成都做網(wǎng)站、網(wǎng)站建設(shè)、外貿(mào)營銷網(wǎng)站建設(shè),漢川網(wǎng)站改版等技術(shù)服務(wù)。擁有10多年豐富建站經(jīng)驗和眾多成功案例,為您定制開發(fā)。
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
因為沒有創(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
網(wǎng)頁標題:kubernetes錯誤Unabletoconnecttotheserver解決方法
當(dāng)前鏈接:http://muchs.cn/article30/iejcpo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、服務(wù)器托管、外貿(mào)建站、App開發(fā)、外貿(mào)網(wǎng)站建設(shè)、網(wǎng)站設(shè)計公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)