k8s中node節點出現NotReady狀態的解決方法之一

如果在describe node中發現
cni config uninitialized KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
這個時候也許是因爲你的node節點中沒有安裝相應的cni模塊。這個時候需要做如下操作:

sudo mkdir -p /opt/cni/bin
cd /opt/cni/bin
然後接下來去下載相應的壓縮包
https://github.com/containernetworking/plugins/releases/tag/v0.8.6
下載一個cni-plugins-linux-amd64-v0.8.6.tgz
然後將其解壓在/opt/cni/bin下就可以了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章