Closed de13 closed 1 year ago
As a workaround, this is working : https://github.com/kubernetes-sigs/cri-o/blob/master/tutorial.md#cni-plugins
I had this same behavior. I found it to be due to AMD64 CNI plugin binaries vs ARM64. https://github.com/rancher/rke/issues/1553
What's the fix? Does this apply in 1.0?
Any news on this?
Looking at the build files, I don't believe that this is still an issue. Are people still running into problems?
Just tried this and it's still not working.
Just to make sure, what were your commands for starting k3s server
/ k3s agent
? (--no-flannel
is now --flannel-backend=none
for example by the way.)
Once I know your starting point versus the ticket opener, I'll poke at it on my end in a bit.
Actually trying with k3d
. Sorry for the confusion.
k3d create --server-arg --flannel-backend=none
Faced the same
# curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--flannel-backend=none" sh -
In logs
Feb 12 03:24:55 k3s k3s[23604]: E0212 03:24:55.574053 23604 kuberuntime_sandbox.go:68] CreatePodSandbox for pod "metrics-server-6d684c7b5-vv2mm_kube-system(5fab9e22-de2c-4479-857d-a6412e512f1a)" failed: rpc error: code = Unknown desc = failed to setup network for sandbox "43f447fbd5eb66179b399f34902c83777c848e9ce0c0ed541d3155f81e583f9c": failed to find plugin "loopback" in path [/opt/cni/bin]
I had to manually install files from https://github.com/containernetworking/plugins/releases/download/v0.6.0/cni-plugins-amd64-v0.6.0.tgz
I had to manually install files from https://github.com/containernetworking/plugins/releases/download/v0.6.0/cni-plugins-amd64-v0.6.0.tgz
Thanks I extracted the latest tgz from above link into /opt/cni/bin and this allowed istio cni to come up.
@sedlund we package cni-plugins v0.8.6 - what version did you install to get this working?
@brandond I installed with --flannel-backend=none
and there is no /opt/cni
directory after install. I used 0.9.1 and put them on /opt/cni/bin
Ah I see, yes. We don't put them in /opt/cni/bin, they're in /var/lib/rancher/k3s/data/current/bin alongside all our other userspace binaries. Our packaged flannel is configured to look there automatically, so if you install your own CNI you will need to grab the plugins yourself or point it at the correct path to find ours.
I tried making symlinks, but noticed the firewall
cni was missing so had to grab the tarball still for istio.
Closing this due to age
Describe the bug Similar to #596 on rke. After installed weave, coredns complains about missing loopback driver in /opt/cni/bin.
To Reproduce
Expected behavior
All CNI drivers for the network