<p>Flannel on node restarts always.</p>

<p>Log as follows:</p>

<pre><code>root@debian:~# docker logs faa668852544
I0425 07:14:37.721766       1 main.go:514] Determining IP address of default interface
I0425 07:14:37.724855       1 main.go:527] Using interface with name eth0 and address 192.168.50.19
I0425 07:14:37.815135       1 main.go:544] Defaulting external address to interface address (192.168.50.19)
E0425 07:15:07.825910       1 main.go:241] Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-arm-bg9rn': Get https://10.96.0.1:443/api/v1/namespaces/kube-system/pods/kube-flannel-ds-arm-bg9rn: dial tcp 10.96.0.1:443: i/o timeout
</code></pre>

<p>master configuration:
<code>ubuntu: 16.04</code></p>

<p>node:</p>

<pre><code>embedded system with debian rootfs(linux4.9).
kubernetes version:v1.14.1
docker version：18.09
flannel version：v0.11.0
</code></pre>

<p>I hope flannel run normal on node.</p>

user9260723
<p>First, for flannel to work correctly, you must pass <code>--pod-network-cidr=10.244.0.0/16</code> to kubeadm init.</p>

<pre><code>kubeadm init --pod-network-cidr=10.244.0.0/16
</code></pre>

<p>Set <code>/proc/sys/net/bridge/bridge-nf-call-iptables</code> to <strong>1</strong> by running </p>

<pre><code>sysctl net.bridge.bridge-nf-call-iptables=1 
</code></pre>

<p>Next is to create the clusterrole and clusterrolebinding</p>

<p>as follows:</p>

<pre><code>kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/a70459be0084506e4ec919aa1c114638878db11b/Documentation/kube-flannel.yml
</code></pre>
