kubernetes出現(xiàn)failedtofindplugin"portmap"inpath[/opt/cni/bin]]如何解決

這篇文章主要講解了“kubernetes出現(xiàn)failed to find plugin "portmap" in path [/opt/cni/bin]]如何解決”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“kubernetes出現(xiàn)failed to find plugin "portmap" in path [/opt/cni/bin]]如何解決”吧!

沽源網(wǎng)站制作公司哪家好,找成都創(chuàng)新互聯(lián)!從網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、自適應(yīng)網(wǎng)站建設(shè)等網(wǎng)站項目制作,到程序開發(fā),運營維護。成都創(chuàng)新互聯(lián)從2013年創(chuàng)立到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進行。專注于網(wǎng)站建設(shè)就選成都創(chuàng)新互聯(lián)。

使用kubectl get node -owide時一個節(jié)點notready,然后使用sudo systemctl status kubelet,輸出如下:

(base) supermap@openbox00:~/openthings/kubernetes-tools$ sudo systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
     Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/kubelet.service.d
             └─10-kubeadm.conf
     Active: active (running) since Fri 2021-04-09 22:30:35 CST; 3 weeks 1 days ago
       Docs: https://kubernetes.io/docs/home/
   Main PID: 2657 (kubelet)
      Tasks: 17 (limit: 18741)
     Memory: 182.0M
     CGroup: /system.slice/kubelet.service
             └─2657 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=systemd --net>

5月 02 18:49:13 openbox00 kubelet[2657]:     {
5月 02 18:49:13 openbox00 kubelet[2657]:       "type": "portmap",
5月 02 18:49:13 openbox00 kubelet[2657]:       "capabilities": {
5月 02 18:49:13 openbox00 kubelet[2657]:         "portMappings": true
5月 02 18:49:13 openbox00 kubelet[2657]:       }
5月 02 18:49:13 openbox00 kubelet[2657]:     }
5月 02 18:49:13 openbox00 kubelet[2657]:   ]
5月 02 18:49:13 openbox00 kubelet[2657]: }
5月 02 18:49:13 openbox00 kubelet[2657]: : [failed to find plugin "flannel" in path [/opt/cni/bin] failed to find plugin "portmap" in path [/opt/cni/bin]]
5月 02 18:49:13 openbox00 kubelet[2657]: W0502 18:49:13.163614    2657 cni.go:239] Unable to update cni config: no valid networks found in /etc/cni/net.d

[4]+  已停止               sudo systemctl status kubelet

大概的意思是cni出問題了。

檢查/opt/cni/bin,發(fā)現(xiàn)里面目錄是空的,不應(yīng)該。

ls -l /opt/cni/bin

重新安裝kubernetes cni,過程中發(fā)現(xiàn)kubelet和kubeadm也被卸載了,重新安裝:

sudo apt remove kubernetes-cni

sudo apt install kubernetes-cni kubelet kubeadm

然后使用sudo systemctl status kubelet和kubectl get node -owide查看服務(wù)和節(jié)點的狀態(tài),恢復(fù)了正常。

不過,該節(jié)點以前是正常運行的,不清楚什么原因?qū)е铝诉@個問題。

感謝各位的閱讀,以上就是“kubernetes出現(xiàn)failed to find plugin "portmap" in path [/opt/cni/bin]]如何解決”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對kubernetes出現(xiàn)failed to find plugin "portmap" in path [/opt/cni/bin]]如何解決這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!

名稱欄目:kubernetes出現(xiàn)failedtofindplugin"portmap"inpath[/opt/cni/bin]]如何解決
本文鏈接:http://bm7419.com/article14/gegige.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)建站、品牌網(wǎng)站設(shè)計、、手機網(wǎng)站建設(shè)移動網(wǎng)站建設(shè)、服務(wù)器托管

廣告

聲明:本網(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)

網(wǎng)站托管運營