What does a CNI plugin do and which ones do you know?
BeginnerScenarioKubernetes Networking
Answer
Situation read → CNI configures pod networking when a pod starts.
What I'd do →
- Kubelet calls the CNI binary to create the pod's network namespace interface, assign an IP and set routes
- Popular choices: AWS VPC CNI (pod gets a VPC IP), Calico (BGP or VXLAN, network policy), Cilium (eBPF, observability, policy), Flannel (simple overlay)
- Check the config in
/etc/cni/net.d/ - List the plugin pods with
kubectl -n kube-system get pods
Why → Without a working CNI, nodes stay NotReady and pods remain ContainerCreating.
Interview tip → Say the choice affects policy support, scale and cloud integration.
More on Kubernetes Networking
Explain the Kubernetes networking model in one minute.BeginnerClusterIP, NodePort and LoadBalancer: when do you use each?BeginnerHow does a pod find another service by name?BeginnerService versus Ingress: what is the difference?BeginnerHow do you reach a pod from your laptop for debugging without exposing it?BeginnerBy default, can any pod talk to any other pod, and how do you change that?Beginner