Comment # 5 on bug 1218694 from Priyanka Saggu
Thanks for pointing to the "cni-plugins" package, @Danish Prakash.

> Indeed! This installs the plugins into /usr/lib(exec)/cni. 
> I'm not sure if they are found there, though, as kubelet seems to expect them in /opt/cni/bin/.
> Otherwise, the 'cni-plugins' package should probably be added to the dependencies somewhere.


@Egbert Eich, changing "bin_dir" value in "/etc/containerd/config.toml", from
"/opt/cni/bin" -> "/use/libexec/cni" will change the search path for cni
plugins.

```
    [plugins."io.containerd.grpc.v1.cri".cni]
      bin_dir = "/usr/libexec/cni"

```

But then the default upstream "kube-flannel.yml" will also need updates in the 
init-containers[1] that install "flannel" binary to /opt/cni/bin


[1]
https://github.com/flannel-io/flannel/blob/master/Documentation/kube-flannel.yml#L140-L205


Will patching the "kube-flannel.yml" file for ^ in the flannel package help? Or
something else will be more ideal?


You are receiving this mail because: