A fresh kubeadm or k3s cluster can’t run real workloads until you install a Container Network Interface (CNI) plugin. The CNI gives every pod an IP and lets pods reach each other across nodes. Kubernetes doesn’t ship one, so you usually pick Calico, Cilium, or Flannel. Canal is a fourth option, really a pattern: Flannel for networking, Calico for policy. This guide covers choosing and first-time setup, plus a default-deny ingress test that shows NetworkPolicy is enforced. Packet-level debugging belongs in a separate guide. The short version:
- Calico or Cilium if your cluster needs NetworkPolicy, and most shared or production clusters do.
- Calico is the safer default. It runs as a simple VXLAN overlay or with native BGP routing, and the Tigera operator manages it.
- Cilium if you want an eBPF data plane, kube-proxy replacement, and deep flow visibility, and you control your node kernels.
- Flannel only for labs and test clusters where you don’t need policy. Plain Flannel does not enforce NetworkPolicy, though current Flannel Helm chart releases offer an optional add-on that installs the Kubernetes SIG network-policy controller.
- Canal if you’re already committed to Flannel networking and only need policy added.
Versions and Environment
Releases in this space ship often, so here’s exactly what this guidance covers.
| Project | Version current at time of writing | Source (checked 2026-10-26) |
|---|---|---|
| Calico | v3.33.0 (released Oct 1, 2026) | projectcalico/calico releases |
| Cilium | v1.20.4 (released Oct 23, 2026) | cilium/cilium releases |
| Flannel | v0.28.10 (released Oct 8, 2026) | flannel-io/flannel releases |
- Cluster type: self-managed, built with kubeadm (k3s notes included where relevant). Managed cloud CNIs are out of scope.
- Kubernetes version: written against kubeadm-built Kubernetes 1.37.x. None of the three projects publishes a single shared compatibility matrix. Check your Kubernetes version against each project’s own compatibility notes.
- Nodes: Linux.
- Testing: this is a documentation-based comparison. We didn’t run throughput or latency benchmarks, and this article has no performance numbers.
Check the releases page again before you install. If a newer patch has shipped, pin that version instead.
Overview: What You’re Comparing
| Option | What it is | Best for | Price |
|---|---|---|---|
| Calico | CNI with BGP and VXLAN data planes plus a mature NetworkPolicy engine. Installed via the Tigera operator. | General-purpose clusters that need policy and flexible routing | Open source, $0 |
| Cilium | eBPF-based CNI with policy, observability, and optional kube-proxy replacement | Teams that want eBPF, flow visibility, or Gateway API on modern kernels | Open source, $0 |
| Flannel | Simple VXLAN overlay. No built-in NetworkPolicy by default; an optional chart add-on can enable it. | Homelabs and test clusters with no policy requirements | Open source, $0 |
| Canal | Flannel networking with Calico’s policy engine | Existing Flannel users who need NetworkPolicy without a full network swap | Open source, $0 |
Descriptions are based on the revisit.tech 2026 CNI overview, the Cilium docs, and the Flannel repository.
Feature Comparison
At a Glance
| Feature | Calico | Cilium | Flannel | Canal | Source |
|---|---|---|---|---|---|
| Kubernetes NetworkPolicy | Yes | Yes | No (needs an add-on) | Yes (via Calico policy) | revisit.tech, Flannel repo |
| Primary data plane | BGP routing or VXLAN/IP-in-IP overlay | eBPF | VXLAN overlay (default) | Flannel overlay | revisit.tech, ekarisky KB |
| Native (unencapsulated) routing | Yes, via BGP | – | – | – | ekarisky KB |
| kube-proxy replacement | – | Yes (opt-in) | No | – | Cilium install docs |
| netkit datapath | – | Yes (opt-in, kernel 6.8+) | – | – | Cilium upgrade docs |
| Recommended install path | Tigera operator via Helm | cilium CLI | kubectl apply manifest or Helm | – | Tigera docs, Cilium docs, Flannel releases |
| Windows dataplane artifacts in current release | Yes (calico-windows-v3.33.0.zip) | – | – | – | Calico releases |
| Default pod CIDR in docs | Set in Installation resource | Set at install | 10.244.0.0/16 | – | Flannel repo |
A dash (-) means our sources didn’t settle the fact either way. It doesn’t mean “no.”
Data Plane: Overlay vs BGP vs eBPF
The data plane decides how a packet gets from a pod on node A to a pod on node B. That choice affects your network team, your MTU settings, and what you can see when something breaks.
Flannel: By default, Flannel wraps pod traffic in VXLAN (Virtual Extensible LAN) packets. Your physical network only sees node-to-node UDP traffic. Pod IPs never need to be routable on your LAN, so Flannel works almost anywhere. The cost is encapsulation overhead on every packet. Captures also show the outer headers, which makes debugging less direct.
Calico: Calico gives you a choice. With BGP (Border Gateway Protocol), nodes advertise pod routes and traffic travels unencapsulated. No wrapping, no overhead. The catch is that your underlay has to cooperate. In practice, you need a router or switch that can peer with your nodes, or a flat L2 network. If that’s not possible, Calico falls back to VXLAN or IP-in-IP. The VXLANCrossSubnet mode encapsulates traffic only when it crosses subnet boundaries (ekarisky KB).
Cilium: Cilium uses eBPF (extended Berkeley Packet Filter). eBPF lets Cilium load small, verified programs straight into the Linux kernel’s packet path. Depending on which features you enable, those programs can handle forwarding, policy, and (with kube-proxy replacement turned on) Service load balancing instead of long iptables chains. That’s what makes kube-proxy replacement and deep flow visibility possible. The trade-off: your kernel matters a lot more than it does with the other two.
Winner: Calico. It’s the only option where you can start with a simple overlay and move to native routing later without changing CNIs. Cilium wins instead if eBPF features are the reason you’re shopping.
NetworkPolicy Enforcement
This is the deciding factor for most readers, so to be explicit: by default, Flannel does not implement the Kubernetes NetworkPolicy API. You can create NetworkPolicy objects on a default Flannel-only cluster, and kubectl will accept them. They just do nothing, and nothing errors out, which is why the gap is so easy to miss.
Current Flannel Helm chart releases do offer an optional add-on that installs the Kubernetes SIG network-policy controller. If you need policy without switching CNIs, check whether your chart version includes that add-on before assuming you need Canal.
If you need policy, you have three options:
- Use Calico instead of Flannel.
- Use Cilium instead of Flannel.
- Use Canal, which keeps Flannel for pod networking and adds Calico’s policy engine on top.
Calico and Cilium both implement standard Kubernetes NetworkPolicy. Cilium also supports L7-aware policy, such as rules based on HTTP attributes. The standard API doesn’t cover that.
Winner: Cilium, narrowly, for L7-aware policy. For standard NetworkPolicy, Calico is just as good.
Cilium Kernel Requirements and kube-proxy Replacement
Two points from the Cilium docs are worth getting right:
- netkit needs Linux 6.8 or later. The Cilium system requirements page for 1.20.4 lists “netkit device mode >= 6.8” and requires
CONFIG_NETKIT=y. netkit is a newer pod network device that can replace the traditional veth pair. Withbpf.datapathMode=auto, Cilium checks the host at startup. It uses netkit where the kernel supports it and falls back to veth otherwise. The default install keeps veth unless you setauto(Cilium upgrade docs). On a fleet with mixed kernels, don’t assume netkit is active on every node. - The general baseline: for 1.20.4, the Cilium system requirements page recommends kernel 5.10 or later (or an equivalent such as 4.18 on RHEL 8.10). Re-check that page if you install a different version.
kube-proxy replacement means Cilium’s eBPF code takes over Service routing (ClusterIP, NodePort, and so on) from kube-proxy’s iptables or nftables rules. In the 1.20.4 install paths shown in this guide, a plain cilium install doesn’t enable it. You have to turn it on yourself. It changes how every Service in the cluster is reached. On a new cluster, that’s a design decision. On an existing cluster, it’s a disruptive migration.
Winner: N/A. This is a Cilium-only capability. Count it as a reason to choose Cilium, with a real migration cost attached.
Installation and Day-2 Operations
Flannel: One manifest. There’s very little to configure, which is both the appeal and the limit.
Calico: Current installs use the Tigera operator, deployed with Helm. You declare an Installation custom resource, and the operator reconciles everything else. Static-manifest installs also exist. A manifest is a snapshot you manage yourself on every upgrade. The operator manages component lifecycles for you, though version upgrades still follow Calico’s documented upgrade procedure and compatibility notes. For long-lived clusters, the operator is usually the better fit.
Cilium: The cilium CLI wraps a Helm install and adds cilium status for a quick health check. One gotcha: the Cilium install docs page may be labeled with a dev version (such as 1.21.0-dev). Its example command pinned 1.20.0, while GitHub releases showed 1.20.4 as current at writing. Pin the version you verified yourself. Don’t copy the docs example as-is.
Winner: Flannel for the first install, Calico for long-term operations.
Pricing Comparison
| Calico | Cilium | Flannel | Canal | |
|---|---|---|---|---|
| Open-source license cost | $0 | $0 | $0 | $0 |
| What you get | NetworkPolicy, BGP and VXLAN data planes, Linux and Windows artifacts | eBPF data plane, NetworkPolicy, optional kube-proxy replacement, Gateway API support | VXLAN pod networking, no policy by default | Flannel networking with Calico policy |
| Commercial editions | Offered by Tigera (not evaluated) | Offered by Isovalent (not evaluated) | None | – |
The software is free. Your real costs are operational time and, for Calico BGP, network hardware that can peer with your nodes. For a homelab cluster, a few mini PCs on a 2.5GbE switch with Cat6 cable will run any of these. Add a UPS so a power blip doesn’t leave the cluster half-booted.
Prerequisites (All Three CNIs)
- A kubeadm-initialized cluster with no CNI installed yet. Nodes will show
NotReadyuntil you install one. kubectlconfigured for the right cluster, and Helm 3 for the Calico and Flannel Helm paths.- Root or sudo access on every node, for loading kernel modules and placing binaries in
/opt/cni/bin. - Your pod CIDR, which is covered next.
Warning: one CNI per cluster. Install only one of these. If a CNI is already running and has workloads, read “Switching CNIs on an Existing Cluster” below before you touch anything.
Step 1: Confirm Your Pod CIDR Matches kubeadm
A mismatch between the CNI’s pod CIDR and kubeadm’s --pod-network-cidr can leave the pod network broken. Pick the CIDR before you run kubeadm init:
# Flannel's documented default is 10.244.0.0/16; using it saves an edit later
sudo kubeadm init --pod-network-cidr=10.244.0.0/16If the cluster already exists, read the value back:
kubectl -n kube-system get configmap kubeadm-config -o yamlLook for the podSubnet line:
networking:
podSubnet: 10.244.0.0/16Use that exact value in whichever CNI you install. On k3s, you set the pod CIDR through k3s’s own config, and k3s has its own pod networking defaults. Check the k3s docs before adding a separate CNI.
Installing Calico (Tigera Operator via Helm)
Step 2a: Install the Calico CRDs
Before installing the Tigera operator chart, Calico v3.33 requires its custom resource definitions to already exist in the cluster. A fresh cluster that skips this step will reject the Installation resource in Step 5a, because the CRD it depends on doesn’t exist yet.
The CRDs come from a separate projectcalico.org.v3 chart, and the command differs by Kubernetes version. Add the Helm repository and create the namespace first, then run the branch that matches your cluster. These commands follow the Calico Helm install docs for v3.33:
helm repo add projectcalico https://docs.tigera.io/calico/charts
helm repo update
kubectl create namespace tigera-operator# Kubernetes 1.36 and later
helm template calico-crds projectcalico/projectcalico.org.v3 --version v3.33.0 \
--api-versions admissionregistration.k8s.io/v1/MutatingAdmissionPolicy \
| kubectl apply --server-side -f -# Kubernetes 1.34 and 1.35
helm template calico-crds projectcalico/projectcalico.org.v3 --version v3.33.0 \
--api-versions admissionregistration.k8s.io/v1beta1/MutatingAdmissionPolicy \
| kubectl apply --server-side -f -Step 3a: Confirm the CRDs Exist
kubectl get crds | grep projectcalico.orgStep 4a: Install the Tigera Operator
# --version pins the chart; re-check the releases page before running
# --create-namespace is harmless if Step 2a already created the namespace
helm install calico projectcalico/tigera-operator \
--version v3.33.0 \
--namespace tigera-operator \
--create-namespaceStep 5a: Define the Installation Resource
The Installation resource is where you set the pod CIDR and, optionally, the data plane. Match cidr to your podSubnet.
The example below is illustrative, not a verified, copy-paste manifest. Pull the authoritative field list for v3.33.0 from the Calico installation reference before applying anything like this to a real cluster.
# /root/calico-installation.yaml
# Illustrative only - verify every field against the current Tigera docs for v3.33.0
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
name: default
spec:
calicoNetwork:
ipPools:
- cidr: 10.244.0.0/16 # must equal kubeadm's podSubnet
encapsulation: VXLANCrossSubnet # overlay only across subnetskubectl apply -f /root/calico-installation.yamlThis example leaves linuxDataplane unset, which keeps Calico on its documented default dataplane. That’s the safer starting point for a standard kubeadm cluster.
If you want the Nftables dataplane instead, don’t just add the field. Calico’s nftables dataplane requires kube-proxy itself to already be running in nftables mode, and a default kubeadm cluster uses iptables-mode kube-proxy.
Check kube-proxy’s current mode first:
kubectl -n kube-system get configmap kube-proxy -o yaml | grep modeIf that shows mode: "" or mode: iptables, reconfigure kube-proxy for nftables per the Calico nftables dataplane docs before setting linuxDataplane: Nftables here.
Field names and required keys can change between Calico releases. Check the sample in the Calico docs for your exact version before applying. If your underlay supports BGP peering, the encapsulation setting is where you’d switch to native routing instead.
Step 6a: Check the Calico Pods
kubectl get pods -n calico-systemEvery pod should reach Running with full READY counts, including the calico-node-* pods (one per node). Calico’s official docs also describe operator-level status checks. Use the command documented there for v3.33, not one from memory.
Installing Cilium (cilium CLI)
Step 2b: Confirm the kubectl Context and Kernel Versions
The install is cluster-wide, so make sure you’re pointed at the right cluster:
kubectl config current-contextThen check each node’s kernel. This matters if you plan to use netkit, which needs 6.8 or later:
kubectl get nodes -o wideThe KERNEL-VERSION column shows each node’s kernel.
Step 3b: Install Cilium with a Pinned Version
Install the cilium CLI by following the Cilium quick install docs. Then run:
# Pin the version you verified on GitHub releases, not the docs example
cilium install --version 1.20.4If every node runs kernel 6.8 or later and you want netkit where available:
# auto selects netkit on 6.8+ kernels, falls back to veth otherwise
cilium install --version 1.20.4 --set bpf.datapathMode=autonetkit has its own feature and kernel considerations, so read the netkit notes in Cilium’s docs before you rely on it, and check what each node actually ended up using after install rather than assuming the auto setting picked netkit everywhere.
Step 4b: Wait for a Healthy Status
cilium status --wait--wait blocks until the components settle. The Cilium agent and cilium-operator should report OK. The agent DaemonSet’s desired, ready, and available counts should all equal your node count.
Step 5b (Optional, Disruptive): kube-proxy Replacement
Warning: Enabling kube-proxy replacement changes how Service traffic works across the whole cluster. On a cluster with running workloads, it can break Service connectivity during the cutover. Treat it as a maintenance-window change and test it on a non-production cluster first. Follow the current config in Cilium’s official install and upgrade docs. Don’t use flags from an older blog post.
The cleanest path is to decide on this before the first install. Cilium’s kube-proxy-free guide (for 1.20.4) has kubeadm skip the kube-proxy addon at init, then installs Cilium with replacement enabled and the API server address set explicitly, because without kube-proxy the agent can’t reach the API server through the default Service:
# On the first control-plane node; keep your other init flags such as --pod-network-cidr
sudo kubeadm init --skip-phases=addon/kube-proxy# API_SERVER_IP and API_SERVER_PORT are your control-plane endpoint (port is usually 6443)
helm repo add cilium https://helm.cilium.io/
helm install cilium cilium/cilium --version 1.20.4 \
--namespace kube-system \
--set kubeProxyReplacement=true \
--set k8sServiceHost=${API_SERVER_IP} \
--set k8sServicePort=${API_SERVER_PORT}On an existing cluster that already runs kube-proxy, follow the migration steps in that guide instead; removing kube-proxy is the disruptive part.
Installing Flannel
Step 2c: Load br_netfilter on Every Node
kubeadm 1.30 and later no longer checks for br_netfilter. Without it, Flannel can fail silently.
sudo modprobe br_netfilter
# Persist across reboots
echo br_netfilter | sudo tee /etc/modules-load.d/br_netfilter.conf
lsmod | grep br_netfilterExpected output: a line beginning with br_netfilter. If the command prints nothing, the module isn’t loaded.
Step 3c: Install the CNI Plugin Binaries
Flannel expects the standard containernetworking plugins in /opt/cni/bin. The project docs cite v1.7.1. This example is for amd64; change amd64 to arm64 on ARM nodes.
wget https://github.com/containernetworking/plugins/releases/download/v1.7.1/cni-plugins-linux-amd64-v1.7.1.tgz
sudo mkdir -p /opt/cni/bin
# -C extracts into the target directory
sudo tar -C /opt/cni/bin -xzf cni-plugins-linux-amd64-v1.7.1.tgz
ls /opt/cni/binThe archive ships the full set of standard plugins, so expect more files than these; the ones to confirm are bridge, host-local, loopback, and portmap. Download the matching architecture on every node.
Step 4c: Apply the Flannel Manifest
kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.ymlIf your pod CIDR is not 10.244.0.0/16, download the manifest first. Edit the Network value to match your podSubnet, then apply your edited copy.
Helm path: If you use Helm instead, set the chart’s podCidr value. Create and label the namespace first, or Pod Security Admission will reject the privileged Flannel agent:
kubectl create namespace kube-flannel
kubectl label --overwrite ns kube-flannel pod-security.kubernetes.io/enforce=privilegedThen follow the Helm instructions in the Flannel README.
Step 5c: Check the Flannel Pods
kubectl get pods -n kube-flannelYou should see one kube-flannel-ds-* pod per node, each Running.
Verify Your CNI Actually Works
Run this section whichever CNI you chose. It confirms three things: nodes are Ready, pods can talk to each other, and NetworkPolicy is enforced.
Step 6: Check That All Nodes Are Ready
kubectl get nodesExpected output (names and versions will differ):
NAME STATUS ROLES AGE VERSION
cp-01 Ready control-plane 20m v1.37.x
work-01 Ready <none> 18m v1.37.x
work-02 Ready <none> 18m v1.37.xEvery node should show Ready. If any node is NotReady, the CNI hasn’t finished on that node.
Step 7: Launch Test Pods and Confirm Connectivity
kubectl create namespace cni-test
kubectl -n cni-test run web --image=nginx --labels=app=web --port=80
kubectl -n cni-test expose pod web --port=80
# --restart=Never creates a plain pod; sleep keeps it alive for exec
kubectl -n cni-test run client --image=busybox --restart=Never -- sleep 3600
kubectl -n cni-test wait --for=condition=Ready pod/web pod/client --timeout=120sNow fetch the nginx page from the client pod:
# -T 5 sets a 5-second timeout
kubectl -n cni-test exec client -- wget -qO- -T 5 http://webExpected output: the nginx welcome page HTML, which includes <title>Welcome to nginx!</title>. That confirms pod-to-pod networking and Service DNS both work.
Step 8: Apply a Default-Deny Policy and Confirm It Blocks Traffic
# /root/default-deny.yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-ingress
namespace: cni-test
spec:
podSelector: {} # empty selector = every pod in the namespace
policyTypes:
- Ingress # no ingress rules listed = deny all ingresskubectl apply -f /root/default-deny.yaml
kubectl -n cni-test exec client -- wget -qO- -T 5 http://webExpected output on Calico or Cilium:
wget: download timed out
command terminated with exit code 1On Flannel installed without the optional policy-controller add-on, you’ll still get the nginx page. The policy exists, but nothing enforces it in that configuration. It’s the clearest way to see the default Flannel limitation for yourself.
Step 9: Clean Up
kubectl delete namespace cni-testSwitching CNIs on an Existing Cluster
Warning: You can’t hot-swap CNIs on a cluster with running workloads. The same goes for enabling Cilium’s kube-proxy replacement. Both changes affect pod networking and Service routing cluster-wide. Expect running workloads to lose connectivity during the change. Schedule a maintenance window, take backups, and rehearse on a non-production cluster first.
If the cluster is small and disposable, rebuilding it with the right CNI is often less risky than migrating in place.
Troubleshooting Common Setup Issues
Flannel pods crash or networking never comes up
- Cause:
br_netfilterisn’t loaded. kubeadm 1.30 and later doesn’t check for it. - Fix: Run Step 2c on every node, then delete the affected
kube-flannel-ds-*pods so they restart.
Pods get IPs but can’t reach pods on other nodes
- Cause: The CNI’s pod CIDR doesn’t match kubeadm’s
podSubnet. - Fix: Compare the values from Step 1 with Flannel’s
NetworkorpodCidrsetting, Calico’sipPools.cidr, or your Cilium settings. Fix the CNI config to match exactly.
Flannel manifest applies but the agent can’t configure networking
- Cause: CNI plugin binaries are missing from
/opt/cni/bin. - Fix: Repeat Step 3c on every node, using the archive that matches each node’s architecture.
Flannel Helm install is rejected
- Cause: Pod Security Admission blocks the privileged agent.
- Fix: Label the
kube-flannelnamespacepod-security.kubernetes.io/enforce=privilegedbefore runninghelm install.
NetworkPolicy has no effect
- Cause: You’re running Flannel without a policy engine enabled.
- Fix: Move to Calico or Cilium, add Calico policy in a Canal-style setup, or check whether your Flannel chart version includes the optional network-policy controller add-on.
Installed Cilium version doesn’t match the docs page
- Cause: The docs page may be labeled with a dev version and show an older example pin.
- Fix: Pin the version from GitHub releases explicitly.
netkit isn’t active on some nodes
- Cause: Those nodes run kernels older than 6.8, so Cilium fell back to veth.
- Fix: Check the
KERNEL-VERSIONcolumn and upgrade kernels where you need netkit.
Calico Installation resource is rejected on a fresh cluster
- Cause: The Calico CRDs weren’t installed before the
Installationresource was applied. - Fix: Run the CRD install command in Step 2a for your Kubernetes version, then retry Step 5a.
NodePort Services are unreachable from outside the cluster
- Possible cause: A single 2026 deployment report says nftables-mode kube-proxy on newer Kubernetes releases skips host-firewall accept rules for the NodePort range. The official release notes we reviewed don’t confirm this.
- Fix: Allow the NodePort range in your host firewall. Check the Kubernetes release notes for your version.
For anything deeper, such as packet captures or per-hop tracing, move to a dedicated networking troubleshooting guide.
Which CNI Should You Choose?
Choose Calico if:
- You need NetworkPolicy and want the most broadly applicable default.
- Your network team can do BGP peering, or might later, and you want unencapsulated routing.
- You want the Tigera operator to manage component lifecycles (version upgrades still follow Calico’s upgrade docs).
- You may add Windows nodes. The current release ships Windows dataplane artifacts.
Choose Cilium if:
- You want an eBPF data plane, L7-aware policy, or flow-level observability.
- You plan to use Gateway API or replace kube-proxy, and you’re deciding before workloads land.
- You control node kernels and can keep them current.
Choose Flannel if:
- It’s a homelab or test cluster, maybe a few Raspberry Pi or mini PC nodes, with no policy requirements.
- You want the fewest moving parts and accept that, without the optional policy add-on, NetworkPolicy objects will be ignored.
Choose Canal if:
- You’re already running Flannel networking, you now need NetworkPolicy, and a full CNI migration isn’t worth it yet.
Calico
- Mature NetworkPolicy support
- Choice of BGP native routing or VXLAN overlay
- Operator-based lifecycle management
- Windows dataplane artifacts in the current release
- BGP mode depends on underlay cooperation
- The
Installationresource adds a configuration layer to learn - Operator install means one more controller to monitor
Cilium
- eBPF data plane enables kube-proxy replacement and deep visibility
- L7-aware policy beyond the standard API
cilium statusgives a fast health check
- Behavior depends on node kernel versions, and netkit needs 6.8 or later
- kube-proxy replacement is a cluster-wide behavioral change
- Docs examples can lag the current release, so pin versions carefully
Flannel
- Simplest install: one manifest
- Overlay works on almost any network
- No NetworkPolicy enforcement by default (an optional chart add-on can enable it)
- Encapsulation overhead and no native-routing option
- Easy-to-miss prerequisites:
br_netfilterand the CNI binaries
Canal
- Adds NetworkPolicy without replacing Flannel networking
- You run and upgrade two projects’ components
- You don’t get Calico’s BGP routing
Final Verdict
For most self-managed clusters, Calico is the pick. It enforces policy, starts as a simple overlay, and can move to native routing later. The operator manages component lifecycles, and you still follow Calico’s upgrade procedure for version changes. Cilium is the stronger choice if eBPF features are your actual requirement and you control your kernels. Being the newest option isn’t a reason by itself. Flannel is fine for learning clusters, as long as you accept that, by default, it won’t enforce policy.
Overall Winner: Calico
These scores are editorial judgments based on documented features and operational trade-offs. No benchmarks went into them.
| Category | Calico | Cilium | Flannel | Canal |
|---|---|---|---|---|
| Policy enforcement | 9/10 | 10/10 | 0/10 | 8/10 |
| Data plane flexibility | 9/10 | 8/10 | 4/10 | 4/10 |
| Ease of initial setup | 7/10 | 7/10 | 9/10 | 6/10 |
| Operational risk (higher = lower risk) | 8/10 | 6/10 | 8/10 | 6/10 |
| Overall | 8.5/10 | 8/10 | 5/10 | 6/10 |
Frequently Asked Questions
Does Flannel support Kubernetes NetworkPolicy?
Not by default. Flannel provides pod connectivity only, and NetworkPolicy objects on a default Flannel cluster are accepted but ignored.
Current Flannel Helm chart releases include an optional add-on that installs the Kubernetes SIG network-policy controller. Without that add-on, use Calico or Cilium, or pair Flannel with Calico policy in a Canal-style setup.
What is eBPF and why does it matter for Cilium?
eBPF lets verified programs run inside the Linux kernel’s packet path. Cilium uses it instead of iptables chains for forwarding, policy, and Service load balancing. That’s the basis for its kube-proxy replacement and observability features.
What kernel does Cilium need?
netkit specifically requires Linux 6.8 or later. For the general baseline, Cilium 1.20.4 recommends kernel 5.10 or later (4.18 on RHEL 8.10), per the Cilium system requirements page.
Should I install Calico via the operator or a static manifest?
Use the Tigera operator via Helm for anything long-lived. It manages component lifecycles through the Installation resource. A static manifest leaves upgrades to you.
Is it safe to switch CNIs on a running cluster?
Not without downtime. Plan it as a maintenance-window operation and test on a non-production cluster first.
Wrapping Up
You now have a way to pick a CNI by data plane and policy needs, a clean install path for each, and a default-deny ingress test that shows your CNI enforces NetworkPolicy (egress and other policy types need their own tests). My take: start with Calico unless you have a specific reason to want eBPF. Re-check the releases pages before every install, because these projects ship patches often.
| Step | Action | Applies To |
|---|---|---|
| 1 | Align pod CIDR with kubeadm podSubnet | All |
| 2–6a | Install CRDs, Helm-install the Tigera operator, and apply Installation | Calico |
| 2–5b | Check kernels, cilium install --version, cilium status --wait | Cilium |
| 2–5c | Load br_netfilter, install CNI binaries, apply manifest | Flannel |
| 6–9 | Nodes Ready, connectivity test, default-deny test, cleanup | All |