<p>Throughout the kubernetes documentation I noticed how to setup a <code>CNI</code> provider using the <code>--cni-conf-dir</code> and <code>--cni-bin-dir</code>. It is mentioned that "If there are multiple <code>CNI</code> configuration files in the directory, the first one in lexicographic order of file name is used."</p>

<p>If I want to switch between the default <code>CNI</code> provider what is the best way. Do I need to rename the configuration files to follow the lexicographic order ? For example if I want to use a bridge or <code>macvlan</code> <code>cni</code> provider instead of flannel what should I do ? </p>

user3364247
<p>Most seem to use <code>10-&lt;cni&gt;.conf</code> to <code>99-&lt;cni&gt;.conf</code>, similar to systemd file naming conventions, to ensure an order. 
But there is no official naming convention as of yet.</p>

<p>For an example of switching providers see <a href="https://stackoverflow.com/questions/53900779/pods-failed-to-start-after-switch-cni-plugin-from-flannel-to-calico-and-then-fla">this stack overflow answer</a>.</p>
