<p>I am trying to run this command -
kubectl apply -f <a href="https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml" rel="nofollow noreferrer">https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml</a></p>
<p>but it gives following output</p>
<p>solve error - &quot;error: unable to read URL &quot;https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml&quot;, server reported 404 Not Found, status code=404&quot;</p>
<p>I am running this on ubuntu on AWS ec2.</p>

Kavya Bhalodia
<p>You got a 404 simply because that file does not exist anymore on <code>master</code> branch.</p>
<p>You can find the <code>kube-flannel-rbac.yaml</code> in the <code>k8s-old-manifests</code> folder: <a href="https://github.com/flannel-io/flannel/blob/v0.22.2/Documentation/k8s-old-manifests/kube-flannel-rbac.yml" rel="nofollow noreferrer">https://github.com/flannel-io/flannel/blob/v0.22.2/Documentation/k8s-old-manifests/kube-flannel-rbac.yml</a>.</p>
<p>To install it (version <code>v0.22.2</code>), you can:</p>
<pre class="lang-bash prettyprint-override"><code>kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/v0.22.2/Documentation/k8s-old-manifests/kube-flannel-rbac.yml
</code></pre>
<p>Note that this <code>kube-flannel-rbac.yaml</code> has disappeared since version <code>v0.20.0</code>. This is why you can't find it on <code>master</code> branch, that you're trying to reach. You can find it in older versions, like <code>v0.19.0</code>:</p>
<pre class="lang-bash prettyprint-override"><code>kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/v0.19.0/Documentation/k8s-manifests/kube-flannel-rbac.yml
</code></pre>
<p>BTW:</p>
<ul>
<li><code>coreos/flannel</code> has been moved to <code>flannel-io/flannel</code> (but I guess you can still use <code>coreos/flannel</code> in the URL as it will redirect you automatically)</li>
<li>be careful to use the manifest corresponding to the Flannel version you're trying to install to avoid surprises</li>
</ul>
