> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Nodes NotReady Without a CNI The Problem

> Explains why Kubernetes nodes show NotReady without a CNI plugin and how installing CNIs like Flannel or Canal restores pod networking and node readiness.

Who is really standing at the gate for pod networking?

Kubernetes does not implement the pod network itself. Instead, it delegates that responsibility to a plugin that runs on every node in the cluster. That plugin is responsible for:

* Provisioning a network interface and assigning an IP address to every pod.
* Enabling pod-to-pod communication across nodes.
* Translating high-level NetworkPolicy objects into the platform-specific rules that actually enforce network isolation.

![A diagram titled "What the Plugin Does" showing a user named Bob, a control plane and a node (node01) with smiling pod icons labeled deploy-a, pod-b, mysql and IP 10.244.1.4. Arrows and a clipboard labeled "In/Out" illustrate network traffic flow through a plugin between the pods and node.](https://mintcdn.com/kodekloud-c4ac6d9a/UCHQITKCSrYPqxtk/images/Learn-By-Doing-Kubernetes-Network-Policies/Installing-a-CNI/Nodes-NotReady-Without-a-CNI-The-Problem/plugin-network-flow-pods-node-diagram.jpg?fit=max\&auto=format\&n=UCHQITKCSrYPqxtk\&q=85\&s=e2317890dd108b29cfacbb14c610d635)

Formally, this component is called a CNI plugin — CNI stands for Container Network Interface. CNI is a standardized interface that describes how networking plugins integrate with Kubernetes and with kubelet. Popular CNI implementations include Calico, Cilium, Flannel, and Canal. Each exposes a different feature set and may implement NetworkPolicy enforcement differently (some enforce policy directly, others require companion components).

So what happens if no CNI plugin is installed?

Bob will demonstrate. He provisions two fresh clusters and uses his workstation (StudentNode) to switch kubeconfig contexts between them. Contexts are named `cluster1` and `cluster2`.

* cluster1: control plane + two worker nodes (3 nodes total)
* cluster2: control plane + one worker node (2 nodes total)
* Workloads: on cluster1 a Deployment `deploy-a` requests two pods; on cluster2 there is a single pod `pod-b`.

Bob checks node status with kubectl. Targeting cluster1:

```bash theme={null}
$ kubectl get nodes --context cluster1
NAME                    STATUS
cluster1-controlplane   NotReady
cluster1-node01         NotReady
cluster1-node02         NotReady
```

Then cluster2:

```bash theme={null}
$ kubectl get nodes --context cluster2
NAME                    STATUS
cluster2-controlplane   NotReady
cluster2-node01         NotReady
```

Every node reports NotReady. Why? Because Kubernetes expects the node to provide pod networking via a CNI. Without a CNI, kubelet has no pod network to advertise and will keep the node in NotReady state. As a result:

* No pods will be scheduled on those nodes.
* `deploy-a` cannot create its two pods on cluster1.
* `pod-b` on cluster2 remains Pending.
* NetworkPolicy objects are effectively irrelevant until there are pods and a CNI to enforce the policies.

![A Kubernetes-style architecture diagram titled "Why No Node Is Ready" showing two clusters (cluster1 and cluster2) with control planes and worker nodes, plus pods labeled deploy-a and pod-b. A user icon labeled "Bob" and a "student-node" are shown connecting to the clusters.](https://mintcdn.com/kodekloud-c4ac6d9a/UCHQITKCSrYPqxtk/images/Learn-By-Doing-Kubernetes-Network-Policies/Installing-a-CNI/Nodes-NotReady-Without-a-CNI-The-Problem/kubernetes-no-node-ready-two-clusters.jpg?fit=max\&auto=format\&n=UCHQITKCSrYPqxtk\&q=85\&s=8487b214e1d6c1d0df6b191f8474fb9f)

To recover, Bob installs CNIs so each cluster has a functioning pod network. He picks:

* Flannel for cluster1
* Canal for cluster2

He chose two different plugins intentionally to compare how each one enforces the same NetworkPolicy later.

![A slide titled "Why Two Plugins?" showing two side-by-side Kubernetes clusters—cluster1 using Flannel and cluster2 using Canal—with controlplane/node icons, pods/deployments, and question-marked network plugin boxes. On the left a user avatar labeled "Bob" and a "student-node" are shown connecting to the clusters with arrows.](https://mintcdn.com/kodekloud-c4ac6d9a/UCHQITKCSrYPqxtk/images/Learn-By-Doing-Kubernetes-Network-Policies/Installing-a-CNI/Nodes-NotReady-Without-a-CNI-The-Problem/two-clusters-flannel-canal-network-plugins.jpg?fit=max\&auto=format\&n=UCHQITKCSrYPqxtk\&q=85\&s=851dc2b16d14ec4de73d3a52388bc813)

Bob's checklist for success:

* CNI plugin pods are running on each cluster.
* All five nodes report Ready.
* Deployment `deploy-a` has both pods Running on cluster1.
* `pod-b` is Running on cluster2.

![A dashboard-style diagram titled "Bob's List" showing two Kubernetes clusters (cluster1 with Flannel and cluster2 with Canal) containing controlplane and worker nodes and pods like deploy-a and pod-b. A left panel lists plugin pods, node count and deployment status.](https://mintcdn.com/kodekloud-c4ac6d9a/UCHQITKCSrYPqxtk/images/Learn-By-Doing-Kubernetes-Network-Policies/Installing-a-CNI/Nodes-NotReady-Without-a-CNI-The-Problem/bobs-list-k8s-clusters-flannel-canal.jpg?fit=max\&auto=format\&n=UCHQITKCSrYPqxtk\&q=85\&s=efbd1cf4f3311924a9a4dc8d9ca6512d)

Note how the CNI is deployed

In practice, a CNI is installed by applying the vendor-provided manifest to the cluster. Most CNI projects publish a YAML file that creates the necessary DaemonSet, RBAC rules, ConfigMaps, and other objects. The DaemonSet pattern ensures the networking agent runs on every node — the agent installs the CNI binaries and writes configuration into `/etc/cni/net.d`, and kubelet then uses that configuration whenever it creates pod network namespaces.

Typical installation commands look like:

```bash theme={null}
# Example: install Flannel into cluster1
kubectl --context cluster1 apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml

# Example: install Canal into cluster2 (Project Calico + Flannel hybrid)
kubectl --context cluster2 apply -f https://docs.projectcalico.org/manifests/canal.yaml
```

After applying the manifests, wait for the CNI pods to reach Running and then re-check node status. You should see nodes transition to Ready and pods be scheduled.

Warning about multiple CNIs

Only one CNI implementation should manage pod networking in a given cluster. Installing multiple distinct CNIs simultaneously can cause conflicts and unpredictable behavior.

Quick reference: common CNIs and where to start

| CNI | Brief description | Install / docs |
| - | - | - |
| Flannel | Simple, lightweight overlay network using VXLAN or host-gw. Good for small clusters and learning. | [https://github.com/flannel-io/flannel](https://github.com/flannel-io/flannel) |
| Calico | Full-featured networking + NetworkPolicy enforcement and optional BGP. Also provides security features. | [https://projectcalico.org/](https://projectcalico.org/) |
| Cilium | eBPF-based data plane for high performance and advanced policy primitives. | [https://cilium.io/](https://cilium.io/) |
| Canal | A combo of Calico (for policy) and Flannel (for overlay). Useful when you want Calico policy with a Flannel dataplane. | [https://docs.projectcalico.org/](https://docs.projectcalico.org/) |

Troubleshooting checklist

* Confirm the CNI pods are Running: `kubectl get pods -n kube-system --context <context>`
* Confirm the DaemonSet created by the CNI has pods on every node: `kubectl get daemonset -n kube-system --context <context>`
* Confirm CNI config files exist on nodes: check `/etc/cni/net.d/` on the node filesystem (reachable via SSH or a privileged debug pod).
* Inspect kubelet logs for CNI plugin errors if nodes remain NotReady.

Useful references

* Kubernetes Network Policies: [https://kubernetes.io/docs/concepts/services-networking/network-policies/](https://kubernetes.io/docs/concepts/services-networking/network-policies/)
* CNI project homepage / specification: [https://www.cni.dev/](https://www.cni.dev/)
* Flannel GitHub: [https://github.com/flannel-io/flannel](https://github.com/flannel-io/flannel)
* Project Calico docs: [https://projectcalico.org/](https://projectcalico.org/)

So, how does the plugin actually get onto a cluster?

By applying the CNI vendor’s manifest (which creates a DaemonSet and supporting objects). The DaemonSet schedules privileged pods on every node; those pods install the CNI binaries/config and set up the node’s pod networking so kubelet can report the node Ready and start scheduling pods.

> [card] [Watch Video](https://learn.kodekloud.com/user/courses/learn-by-doing-kubernetes-network-policies/module/7c56719e-7a67-419e-a2fb-be8709b49200/lesson/68d920f7-3ceb-4a4e-9dbe-061cf82ba461)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.