1. Inspecting the Kubelet Service
To determine the container runtime endpoint configured for your Kubernetes cluster, start by inspecting the Kubelet service. Run the following command to view the running Kubelet processes:This output confirms that your cluster is using Containerd as the container
runtime.
2. Locating the CNI Plugin Binaries
Next, identify where the CNI-supported plugin binaries are stored. The default location is:3. Identifying the Missing CNI Plugin
Review the listed plugins to identify which CNI plugin is not available on the host. Although “vlan” is present, a closer look reveals that the Cisco plugin is missing. Verification against common plugins like “bridge” and “dhcp” confirms this.4. Determining the Configured CNI Plugin
To discover which CNI plugin is configured for your Kubernetes cluster, examine the CNI configuration directory:5. Verifying the CNI Plugin Configuration
After a container and its associated namespaces are created, the Kubelet runs the executable defined in the CNI configuration file. To review the Flannel configuration, navigate to the configuration directory and display the file content:10-flannel.conflist will be similar to:
6. Summary
Below is a concise summary of the key points covered:- The container runtime endpoint is set to:
unix:///var/run/containerd/containerd.sock - CNI plugin binaries are located in
/opt/cni/bin, with the Cisco plugin missing. - The active network configuration in
/etc/cni/net.d/10-flannel.conflistindicates that the Flannel CNI plugin is in use alongside the Portmap plugin.
Always ensure that your cluster’s configuration is verified in staging
environments before applying changes to production.