CNI
When do we use CNI in Kubernetes?
- Pod Creation: Every time a Pod is created, Kubernetes uses CNI to configure its networking.
- Network Policy: When applying network policies to manage traffic rules between Pods.
- Cluster Scaling: When adding or removing nodes in the cluster, CNI ensures network connectivity is maintained.
CNI has a bunch of plugins which Kubelet uses CNI Plugins when it creates a new pod