Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find which CNI plugin is my k8s is using? Where is its config file(s)?

Tags:

kubernetes

cni

How can I find easily which CNI plugin is configured and where is the config file associated with it?

like image 336
maiky Avatar asked Oct 24 '25 14:10

maiky


1 Answers

You can look into the content in /etc/cni/net.d and the binary at /opt/cni/bin. If you don't find any of these, you can check kubelet argument --cni-conf-dir and --cni-bin-dir which will point you to the custom location of your CNI plugin.

like image 181
gohm'c Avatar answered Oct 26 '25 18:10

gohm'c