Basavraj Nilkanthe:
Where I can find CNI parameter passed to kubelet service… What mean /opt/cni/bin/ and /etc/cni/net.d/ these two path… these two path help to identify CNI plugin details but How we can navigate to this path from kubelet service…
root 4693 0.0 0.0 4077080 103776 ? Ssl 12:08 0:38 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --network-plugin=cni --pod-infra-container-image=<http://k8s.gcr.io/pause:3.2|k8s.gcr.io/pause:3.2>
Vinay:
Hi @Basavraj Nilkanthe it will be kubeadm-flags.env
cat /var/lib/kubelet/kubeadm-flags.env
KUBELET_KUBEADM_ARGS="--network-plugin=cni --pod-infra-container-image=<http://k8s.gcr.io/pause:3.4.1|k8s.gcr.io/pause:3.4.1>"
Vinay:
By default kubelet will read the cni configuration from /etc/cni/net.d/
Basavraj Nilkanthe:
root@node01:~# cat /var/lib/kubelet/kubeadm-flags.env
KUBELET_KUBEADM_ARGS="--network-plugin=cni --pod-infra-container-image=<http://k8s.gcr.io/pause:3.2|k8s.gcr.io/pause:3.2>"
root@node01:~#
Basavraj Nilkanthe:
okay these are standard path for kubelet service to read CNI plugins