溫馨提示×

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

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

kubernetes啟動(dòng)錯(cuò)誤(Unable to connect to the server: x509: certificate signed by unknown authority )怎么解決

發(fā)布時(shí)間:2020-10-12 16:02:10 來源:億速云 閱讀:8015 作者:栢白 欄目:系統(tǒng)運(yùn)維

這篇文章主要介紹了kubernetes啟動(dòng)錯(cuò)誤(Unable to connect to the server: x509: certificate signed by unknown authority )怎么解決,具有一定借鑒價(jià)值,需要的朋友可以參考下。下面就和我一起來看看吧。

kubernetes啟動(dòng)時(shí)候報(bào)錯(cuò)如下:

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

出現(xiàn)這樣的報(bào)錯(cuò)是什么原因呢?其實(shí)有可能是忘記執(zhí)行腳本程序了。

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

只要執(zhí)行了腳本程序,就會(huì)正常了

1. [root@worker3 shell]# kubectl get node
 
2. NAME      STATUS    ROLES     AGE       VERSION
 
3. worker3   Ready     master    1m        v1.10.0

以上就是kubernetes啟動(dòng)錯(cuò)誤(Unable to connect to the server: x509: certificate signed by unknown authority )怎么解決的詳細(xì)內(nèi)容了,看完之后是否有所收獲呢?如果想了解更多相關(guān)內(nèi)容,歡迎來億速云行業(yè)資訊!

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

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

AI