<p>I am running <code>etcd</code>, <code>kube-apiserver</code>, <code>kube-scheduler</code>, and <code>kube-controllermanager</code> on a master node as well as <code>kubelet</code> and <code>kube-proxy</code> on a minion node as follows (all kube binaries are from kubernetes 1.7.4):</p>

<pre><code># [master node]
./etcd
./kube-apiserver --logtostderr=true --etcd-servers=http://127.0.0.1:2379 --service-cluster-ip-range=10.10.10.0/24 --insecure-port 8080 --secure-port=0 --allow-privileged=true --insecure-bind-address 0.0.0.0
./kube-scheduler --address=0.0.0.0 --master=http://127.0.0.1:8080
./kube-controller-manager --address=0.0.0.0 --master=http://127.0.0.1:8080

# [minion node]
./kubelet --logtostderr=true --address=0.0.0.0 --api_servers=http://$MASTER_IP:8080 --allow-privileged=true
./kube-proxy --master=http://$MASTER_IP:8080
</code></pre>

<p>After this, if I execute <code>kubectl get all --all-namespaces</code> and <code>kubectl get nodes</code>, I get</p>

<pre><code>NAMESPACE   NAME             CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
default     svc/kubernetes   10.10.10.1   &lt;none&gt;        443/TCP   27m

NAME       STATUS    AGE       VERSION
minion-1   Ready     27m       v1.7.4+793658f2d7ca7
</code></pre>

<p>Then, I apply flannel as follows:</p>

<pre><code>kubectl apply -f kube-flannel-rbac.yml -f kube-flannel.yml
</code></pre>

<p>Now, I see a pod is created, but with error:</p>

<pre><code>NAMESPACE     NAME                    READY     STATUS             RESTARTS   AGE
kube-system   kube-flannel-ds-p8tcb   1/2       CrashLoopBackOff   4          2m
</code></pre>

<p>When I check the logs inside the failed container in the minion node, I see the following error:</p>

<pre><code>Failed to create SubnetManager: unable to initialize inclusterconfig: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
</code></pre>

<p>My question is: how to resolve this? Is this a SSL issue? What step am I missing in setting up my cluster?</p>

<p>Maybe it is your flannel yaml file has something wrong,
you can try this to install your flannel,
check the old ip link </p>

<p><code>
ip link
</code></p>

<p>if it show flannel,please delete it </p>

<p><code>
ip link delete flannel.1
</code></p>

<p>and install , its default pod network cdir is 10.244.0.0/16</p>

<p><code>
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.0/Documentation/kube-flannel.yml
</code></p>
