<p>I have a raspberry pi cluster (one master , 3 nodes) </p>

<p>My basic image is : raspbian stretch lite</p>

<p>I already set up a basic kubernetes setup where a master can see all his nodes (kubectl get nodes) and they're all running.
I used a weave network plugin for the network communication</p>

<p>When everything is all setup i tried to run a nginx pod (first with some replica's but now just 1 pod) on my cluster as followed
kubectl run my-nginx --image=nginx</p>

<p>But somehow the pod get stuck in the status "Container creating" , when i run docker images i can't see the nginx image being pulled. And normally an nginx image is not that large so it had to be pulled already by now (15 minutes). 
The kubectl describe pods give the error that the pod sandbox failed to create and kubernetes will rec-create it.</p>

<p>I searched everything about this issue and tried the solutions on stackoverflow (reboot to restart cluster, searched describe pods  , new network plugin tried it with flannel) but i can't see what the actual problem is.
I did the exact same thing in Virtual box (just ubuntu not ARM ) and everything worked.</p>

<p>First i thougt it was a permission issue because i run everything as a normal user , but in vm i did the same thing and nothing changed.
Then i checked kubectl get pods --all-namespaces to verify that the pods for the weaver network and kube-dns are running and also nothing wrong over there . </p>

<p>Is this a firewall issue in Raspberry pi ? 
Is the weave network plugin not compatible (even the kubernetes website says it is) with arm devices ? 
I 'am guessing there is an api network problem and thats why i can't get my pod runnning on a node</p>

<p>[EDIT]
Log files</p>

<p>kubectl describe podName </p>

<pre><code>&gt;     
&gt;     Name:           my-nginx-9d5677d94-g44l6 Namespace:      default Node: kubenode1/10.1.88.22 Start Time:     Tue, 06 Mar 2018 08:24:13
&gt; +0000 Labels:         pod-template-hash=581233850
&gt;                     run=my-nginx Annotations:    &lt;none&gt; Status:         Pending IP: Controlled By:  ReplicaSet/my-nginx-9d5677d94 Containers: 
&gt; my-nginx:
&gt;         Container ID:
&gt;         Image:          nginx
&gt;         Image ID:
&gt;         Port:           80/TCP
&gt;         State:          Waiting
&gt;           Reason:       ContainerCreating
&gt;         Ready:          False
&gt;         Restart Count:  0
&gt;         Environment:    &lt;none&gt;
&gt;         Mounts:
&gt;           /var/run/secrets/kubernetes.io/serviceaccount from default-token-phdv5 (ro) Conditions:   Type           Status  
&gt; Initialized    True   Ready          False   PodScheduled   True
&gt; Volumes:   default-token-phdv5:
&gt;         Type:        Secret (a volume populated by a Secret)
&gt;         SecretName:  default-token-phdv5
&gt;         Optional:    false QoS Class:       BestEffort Node-Selectors:  &lt;none&gt; Tolerations:     node.kubernetes.io/not-ready:NoExecute for
&gt; 300s
&gt;                      node.kubernetes.io/unreachable:NoExecute for 300s Events:   Type     Reason                  Age   From               
&gt; Message   ----     ------                  ----  ----               
&gt;     -------   Normal   Scheduled               5m    default-scheduler   Successfully assigned my-nginx-9d5677d94-g44l6 to kubenode1   Normal  
&gt; SuccessfulMountVolume   5m    kubelet, kubenode1  MountVolume.SetUp
&gt; succeeded for volume "default-token-phdv5"   Warning 
&gt; FailedCreatePodSandBox  1m    kubelet, kubenode1  Failed create pod
&gt; sandbox.   Normal   SandboxChanged          1m    kubelet, kubenode1 
&gt; Pod sandbox changed, it will be killed and re-created.
</code></pre>

<p>kubectl logs podName</p>

<pre><code>Error from server (BadRequest): container "my-nginx" in pod "my-nginx-9d5677d94-g44l6" is waiting to start: ContainerCreating
</code></pre>

<p>journalctl -u kubelet gives this error </p>

<pre><code>Mar 12 13:42:45 kubeMaster kubelet[16379]: W0312 13:42:45.824314   16379 cni.go:171] Unable to update cni config: No networks found in /etc/cni/net.d
Mar 12 13:42:45 kubeMaster kubelet[16379]: E0312 13:42:45.824816   16379 kubelet.go:2104] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
</code></pre>

<p>The problem seems to be with my network plugin. In my /etc/systemd/system/kubelet.service.d/10.kubeadm.conf . the flags for the network plugins are present ? environment= kubelet_network_args --cni-bin-dir=/etc/cni/net.d 
--network-plugin=cni</p>

<p>Thank you all for responding to my question.
I solved my problem now. For anyone who has come to my question in the future the solution was as followed.</p>

<p>I cloned my raspberry pi images because i wanted a basicConfig.img for when i needed to add a new node to my cluster of when one gets down.</p>

<p>Weave network (the plugin i used) got confused because on every node and master the os had the same machine-id. When i deleted the machine id and created a new one (and reboot the nodes) my error got fixed.
The commands to do this was </p>

<pre><code>sudo rm /etc/machine-id
sudo rm /var/lib/dbus/machine-id
sudo dbus-uuidgen --ensure=/etc/machine-id
</code></pre>

<p>Once again my patience was being tested. Because my kubernetes setup was normal and my raspberry pi os was normal. I founded this with the help of someone in the kubernetes community. This again shows us how important and great our IT community is. To the people of the future who will come to this question. I hope this solution will fix your error and will decrease the amount of time you will be searching after a stupid small thing.</p>
