-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error validating "kube-flannel.yml": error validating data: failed to download openapi: #2100
Comments
Hi. Did you configure the kubeconfig file used by kubectl right? |
Could you try with |
Here is the output for the command
|
When I issue the command
I see that the api server is up and running
|
you are using sudo with kubectl apply. When you get root level permission you lost the KUBECONFIG env. |
OK, do you have an idea how to make it possible without sudo as I always get " need root privilege" when I run without sudo |
you need to do a chmod +r on the kubeconfig file |
Yes, this chmod did the job and I was able to run kubectl without sudo, here is the ouput, is it the correct bahavior?
|
yes |
But getting issues by issuing kubeadm join on, the 1st node it says i see in it NotReady state when I doi describe node
|
Hi, I recreated the cluster but getting always issues with pods indicating failed to find plugin cni loopback in path /opt/cni/bin Is this something that flannel should add? |
You should install the CNI plugins
|
Thanks is this all 1 script to run? |
Yes it should be enough |
Thanks, yes this allowed to go through and initially K8s cluster was up and running with 2 flannel pods as you can see in the snapshot but as soon as I joined a worker node, 1 flannel pod was created on that node but failing as follows I did a describe and here is the full ouput in the enclosed file |
The cni bin should be included on each node. |
After successful kubadm init, I downloaded from
https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
when I run
kubectl apply -f kube-flannel.yml
I get
error: error validating "kube-flannel.yml": error validating data: failed to download openapi: Get "http://localhost:8080/openapi/v2?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false
Expected Behavior
install this CNI
Your Environment
The text was updated successfully, but these errors were encountered: