k3s icon indicating copy to clipboard operation
k3s copied to clipboard

k3s v1.24.4+k3s1 cann't use custom cni

Open lazywhite opened this issue 3 years ago • 3 comments

Environmental Info: K3s Version: 1.24.4+k3s1

Node(s) CPU architecture, OS, and Version:

os: centos7.9 arch: x86_64

Cluster Configuration:

1 master Describe the bug:

run server with this command k3s server --flannel-backend=none --disable-network-policy

but node won't be ready, then calico can't be installed because node is not ready

E0901 20:27:43.955758 3037 kubelet.go:2349] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"

Steps To Reproduce:

  • Installed K3s:

Expected behavior:

Actual behavior:

Additional context / logs:

lazywhite avatar Sep 01 '22 12:09 lazywhite

Have you tried out k3s check-config yet? Perhaps there's a network clash with the CNI driver you're trying to use and another adapter you're running?

alexellis avatar Sep 01 '22 15:09 alexellis

How are you installing calico?

manuelbuil avatar Sep 01 '22 16:09 manuelbuil

calico can't be installed because node is not ready

Calico should tolerate the NotReady taint, since it is the CNI and the node will (by definition) not be ready until after it is installed. I suspect there is a problem in your install process - as @manuelbuil asked, what steps are you following to install calico?

brandond avatar Sep 01 '22 17:09 brandond

node not ready is because of kernel missing iptables comment module, not related with custom cni

lazywhite avatar Oct 27 '22 14:10 lazywhite