CNI(Contaniner Network Interface)网络插件需要所有 Kubernetes Node 节点部署,因为 kubelet 和 kube-proxy 需要它。
这里要确保 kubelet 启动时指定了 --network-plugin=cni,上面安装kubelet时在 /opt/kubernetes/server/bin/conf/kubelet.conf 中已经指定了 --network-plugin=cni
下载 CNI 网络插件在(192.168.1.180)上执行
[root@k8s-180 software]# wget https://github.com/containernetworking/plugins/releases/download/v0.9.1/cni-plugins-linux-amd64-v0.9.1.tgz [root@k8s-180 software]# mkdir -p /opt/cni/bin [root@k8s-180 software]# tar -zxvf cni-plugins-linux-amd64-v0.9.1.tgz -C /opt/cni/bin
再将 /opt/cni/bin目录复制到每台kubelet 节点中
## 在每次要同步的服务器上创建目录 [root@k8s-182 software]# mkdir -p /opt/cni/bin [root@k8s-183 software]# mkdir -p /opt/cni/bin [root@k8s-184 s



