I am trying to run this command - kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
but it gives following output
solve error - "error: unable to read URL "https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml", server reported 404 Not Found, status code=404"
I am running this on ubuntu on AWS ec2.
You got a 404 simply because that file does not exist anymore on
masterbranch.You can find the
kube-flannel-rbac.yamlin thek8s-old-manifestsfolder: https://github.com/flannel-io/flannel/blob/v0.22.2/Documentation/k8s-old-manifests/kube-flannel-rbac.yml.To install it (version
v0.22.2), you can:Note that this
kube-flannel-rbac.yamlhas disappeared since versionv0.20.0. This is why you can't find it onmasterbranch, that you're trying to reach. You can find it in older versions, likev0.19.0:BTW:
coreos/flannelhas been moved toflannel-io/flannel(but I guess you can still usecoreos/flannelin the URL as it will redirect you automatically)