<p>I am getting this result for flannel service on my slave node.  Flannel is running fine on master node.</p>

<pre><code>kube-system   kube-flannel-ds-amd64-xbtrf      0/1     CrashLoopBackOff   4          3m5s
</code></pre>

<p>Kube-proxy running on the slave is fine but not the flannel pod.</p>

<p>I have a master and a slave node only.  At first its say <code>running</code>, then it goes to <code>error</code> and finally, <code>crashloopbackoff</code>.</p>

<pre><code>godfrey@master:~$ kubectl get pods --all-namespaces -o wide
NAMESPACE     NAME                             READY   STATUS             RESTARTS   AGE     IP                NODE     NOMINATED NODE   READINESS GATES
kube-system   kube-flannel-ds-amd64-jszwx      0/1     CrashLoopBackOff   4          2m17s   192.168.152.104   slave3   &lt;none&gt;           &lt;none&gt;
kube-system   kube-proxy-hxs6m                 1/1     Running            0          18m     192.168.152.104   slave3   &lt;none&gt;           &lt;none&gt;
</code></pre>

<p>I am also getting this from the logs:</p>

<pre><code>I0515 05:14:53.975822       1 main.go:390] Found network config - Backend type: vxlan
I0515 05:14:53.975856       1 vxlan.go:121] VXLAN config: VNI=1 Port=0 GBP=false Learning=false DirectRouting=false
E0515 05:14:53.976072       1 main.go:291] Error registering network: failed to acquire lease: node "slave3" pod cidr not assigned
I0515 05:14:53.976154       1 main.go:370] Stopping shutdownHandler...
</code></pre>

<p>I could not find a solution so far.  Help appreciated.</p>

<p>As solution came from OP, I'm posting answer as community wiki.</p>

<p>As reported by OP in the comments, he didn't passed the podCIDR during kubeadm init. </p>

<p>The following command was used to see that the flannel pod was in "CrashLoopBackoff" state: </p>

<pre><code>sudo kubectl get pods --all-namespaces -o wide
</code></pre>

<p>To confirm that podCIDR was not passed to flannel pod <code>kube-flannel-ds-amd64-ksmmh</code> that was in <code>CrashLoopBackoff</code> state.</p>

<pre><code>$ kubectl logs kube-flannel-ds-amd64-ksmmh
</code></pre>

<p><code>kubeadm init --pod-network-cidr=172.168.10.0/24</code> didn't pass the podCIDR to the slave nodes as expected. </p>

<p>Hence to solve the problem, <code>kubectl patch node slave1 -p '{"spec":{"podCIDR":"172.168.10.0/24"}}'</code> command had to be used to pass podCIDR to each slave node. </p>

<p>Please see this link: <a href="http://coreos.com/flannel/docs/latest/troubleshooting.html" rel="nofollow noreferrer">coreos.com/flannel/docs/latest/troubleshooting.html</a> and section "Kubernetes Specific"</p>
