<p>Trying several options to resolve the issue with weave-net (<a href="https://stackoverflow.com/questions/39872332/how-to-fix-weave-net-crashloopbackoff-for-the-second-node">How to fix weave-net CrashLoopBackOff for the second node?</a>), I have decided to try calico instead of weave-net. The documentation for kubernetes tells I need only one or another. The command (as per documentation here <a href="https://github.com/projectcalico/calico-containers/tree/master/docs/cni/kubernetes/manifests/kubeadm" rel="nofollow noreferrer">https://github.com/projectcalico/calico-containers/tree/master/docs/cni/kubernetes/manifests/kubeadm</a>) fails:</p>

<pre><code>vagrant@vm-master:~$ sudo kubectl create -f https://github.com/projectcalico/calico-containers/blob/master/docs/cni/kubernetes/manifests/kubeadm/calico.yaml
yaml: line 6: mapping values are not allowed in this context
</code></pre>

<p><strong>What I am doing wrong? Is it known issue? How can I fix/workaround it?</strong></p>

<p>You need to reference the raw YAML file in your command, instead of the full GitHub HTML document:</p>

<pre><code>kubectl create -f https://raw.githubusercontent.com/projectcalico/calico-containers/master/docs/cni/kubernetes/manifests/kubeadm/calico.yaml
</code></pre>
