Docker CNI:无法build立networking

为什么我无法为新豆荚创buildnetworking?

Error syncing pod, skipping: failed to "SetupNetwork" for "kube-dns-v11-n4yp4_kube-system" with SetupNetworkError: "Failed to setup network for pod \"kube-dns-v11-n4yp4_kube-system(841109e1-2d93-11e6-8393-080027ad62c7)\" using network plugins \"cni\": could not find \".\" plugin; Skipping pod" 

通常,当CNInetworkingconfiguration文件丢失或格式错误,或CNInetworkingconfiguration文件中引用的插件二进制文件丢失时,会发生此错误。

确保/etc/cni/net.d有一个有效的CNInetworkingconfiguration文件,并确保该文件中指定types的插件二进制文件存在于/opt/cni/bin

您可以在这里findCalico的示例CNInetworkingconfiguration文件: https : //github.com/projectcalico/calico-containers/blob/master/docs/cni/kubernetes/KubernetesIntegration.md#2-download-and-configure-the -calico-CNI-插件

因此,对于Calico,您应该在/etc/cni/net.d具有指定了/etc/cni/net.d type: calico的CNIconfiguration文件,然后在/opt/cni/bin/calico /etc/cni/net.d安装Calico CNI二进制文件

您可能已经跳过了configurationnetworking插件。 这是设置群集的必要步骤。

在主运行:

 kubectl apply -f https://git.io/weave-kube 

然后检查所有服务窗格是否正常运行:

 kubectl get pods --all-namespaces 
Interesting Posts