Jeff McLamb:
For question https://kodekloud.com/topic/practice-test-cni-weave-2/ it asks what the network plugin is. I can see how kubelet is running via ps aux
but I cannot find with the --network-plugin
argument is passed — it does not seem to be in any of the systemd unit files or configs for kubelet.
unnivkn:
ps -aux | grep kubelet | grep -i cni
Jeff McLamb:
Right but where is that configured in the kubelet config? I don’t see it in any of the systemd unit or conf files
Aravind Raj Mahadevan:
If nothing is specified (or when you don’t see anything in terminal after grepping), assume that the network plugin binaries are under the default directory which is /opt/cni/bin
.
Aravind Raj Mahadevan:
To see the plugin that’s being used, look under /etc/cni/net.d/10-<plugin-name>
.
Jeff McLamb:
Right but where is the command-line switch --network-plugin=cni
coming from in kubelet? I do not see it in /etc/system/systemd/kubelet.conf.d
or any of the files it references
Jeff McLamb:
Maybe that is just the default if it is not explicitly specified?