geerlingguy/ansible-role-kubernetes

kube-flannel-rbac.yml not found

desimetallica opened this issue · 3 comments

Hello, I'm trying to use this role to deploy k8s on ubuntu.
the process is going smooth but it encounter a fail with:

"item": "kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml"

it returns:

"stderr_lines": [
"error: unable to read URL "https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml", server reported 404 Not Found, status code=404"
]

For the other item in the task the process is ok:
"item": "kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml"

Is it a problem for the deploy?

I hit this issue also.
Workaround was to override the default vars

  vars:

    # Flannel
    kubernetes_flannel_manifest_file_rbac: https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
    kubernetes_flannel_manifest_file: https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
    kubernetes_pod_network:
      cni: 'flannel'
      cidr: '10.244.0.0/16'

Thanks @dkirrane, yeah I did the same as workaround. Seems to be ok from my side...
BR

Thanks for filing the issue! I just updated it in the latest commit above.