I have an weave network plugin.
inside my folder /etc/cni/net.d there is a 10-weave.conf
{
"name": "weave",
"type": "weave-net",
"hairpinMode": true
}
My weave pods are running and the dns pod is also running But when I want to run a pod like a simple nginx which will pull an nginx image The pod stuck at container creating, describe pod gives me the error, failed create pod sandbox.
When I run journalctl -u kubelet
I get this error
cni.go:171] Unable to update cni config: No networks found in /etc/cni/net.d
is my network plugin not well configured?
I used this command to configure my weave network
kubectl apply -f https://git.io/weave-kube-1.6
After this won't work I also tried this command
kubectl apply -f “https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d ‘\n’)”
I even tried flannel and that gives me the same error. The system I am setting kubernetes on is a raspberry pi. I am trying to build a raspberry pi cluster with 3 nodes and 1 master with kubernetes
Does anyone have ideas on this?
Looking at the pertinent code in Kubernetes and in CNI, the specific error you see seems to indicate that it cannot find any files ending in .json
, .conf
or .conflist
in the directory given.
This makes me think it could be something as the conf file not being present on all the hosts, so I would verify that as a first step.