Choosing a Kubernetes CNI plugin: Calico, Cilium or Flannel

Choosing a CNI plugin decides how pod traffic is routed, which network policies are enforced and how hard a later change will be. This page compares Calico, Cilium and Flannel for self-managed clusters.

On this page

Choosing a Kubernetes CNI plugin before the first cluster goes live

If you are building or rebuilding a self-managed cluster, you must pick a CNI plugin before workloads arrive, and the choice is expensive to reverse once pods are running. Kubernetes does not ship a network plugin. The CNI plugin provides pod networking and, depending on the product, NetworkPolicy enforcement, encryption between nodes and flow visibility. Calico, Cilium and Flannel are the three candidates most teams compare, and each makes a different trade-off between policy depth, operational footprint and the features it bundles.

The right pick depends on four things you can check now. First, your policy needs: Flannel handles pod connectivity but does not enforce NetworkPolicy on its own, so if policy is a requirement, confirm which plugin or add-on you will run for enforcement. Second, your kernel and node operating system, because the eBPF data plane in Cilium and the eBPF option in Calico impose kernel requirements that must be verified against every node image. Third, whether you need Windows worker nodes, since support differs by plugin and must be confirmed against the current release notes. Fourth, how the cluster is installed, because the distribution or installer you choose may bundle a default plugin and fix the decision for you.

Before you commit, write down the answers to those four questions, then test the candidate on a non-production cluster built the way production will be built, including your node image and any air-gapped registry path. Check the Kubernetes CNCF conformance program only as a baseline for API support, since conformance does not tell you which network features a plugin provides. Ask your vendor or the project maintainers to confirm each feature you depend on, and record the version you tested so the choice survives later upgrades.

How Calico, Cilium and Flannel differ on policy, data plane and extras

This table compares the three CNI plugins on the features that usually decide the choice: policy enforcement, data plane, routing, encryption, observability and Windows support. Use it as a starting checklist, then confirm each row against the current documentation for the version you plan to run, since feature availability changes between releases.

Decision areaCalicoCiliumFlannel
NetworkPolicy enforcementEnforces Kubernetes NetworkPolicy and adds its own policy resources for global and host-level rules. Confirm which policy tiers your edition includes.Enforces Kubernetes NetworkPolicy and adds identity-based CiliumNetworkPolicy resources. Confirm L7 policy support in your chosen mode.Does not enforce NetworkPolicy on its own. Policy needs a separate controller or a different CNI, so confirm the pairing before you rely on it.
Data planeStandard Linux data plane using iptables or nftables, with an eBPF data plane option. Confirm the current default and the eBPF requirements.eBPF-based data plane, with an option to replace kube-proxy. Confirm kernel requirements for your node OS before planning.Kernel networking with a simple bridge or VXLAN setup. It does not use eBPF or iptables policy rules.
Routing modelSupports overlay networking and BGP routing with no encapsulation, which suits teams with network routing control.Supports overlay (tunnel) and native routing modes. Confirm the mode that matches your network design.Overlay networking, typically VXLAN. Routing choices are limited compared with the other two.
Encryption in transitOffers WireGuard-based encryption for pod traffic. Confirm the option and any node requirements in the current docs.Offers WireGuard and IPsec options for pod traffic. Confirm which mode is supported with your datapath.No built-in pod traffic encryption. Teams that need it must add a separate mechanism.
ObservabilityFlow logs and policy metrics in the open source edition are limited. Confirm what the open source edition exposes versus paid editions.Hubble provides flow visibility and metrics built on the same data plane. Confirm the components you need to deploy.Minimal built-in flow visibility. Teams usually add separate monitoring tooling.
Windows node supportSupports Windows nodes in its documented configurations. Confirm which policy features apply on Windows.Limited Windows support. Confirm the current status before selecting it for mixed clusters.Documented support for Windows nodes with a VXLAN or host-gateway setup. Confirm the mode and limits.
Distribution defaultsCommon default or option in several kubeadm-based and managed distributions. Check what your distribution installs and whether you can change it.Default or option in some distributions and managed offerings. Check your distribution documentation before assuming it is bundled.Often the default in lightweight distributions such as K3s. Check whether your distribution still ships it as default.
Best fitTeams that need strong NetworkPolicy enforcement, flexible routing and an option to use BGP with existing network teams.Teams that want eBPF data plane, identity-based policy and built-in flow visibility, and can meet the kernel requirements.Small or simple clusters that need basic pod networking and do not need policy enforcement or encryption.

Which requirements should decide the plugin

The right CNI plugin usually follows from a short list of hard requirements rather than from feature comparisons. Work through these six drivers with your security, network and platform teams before you compare products, because each one either eliminates an option or changes the build effort.

Is NetworkPolicy a compliance requirement

Kubernetes NetworkPolicy objects only take effect if the CNI plugin enforces them. Flannel does not enforce NetworkPolicy on its own, so a cluster that needs enforced pod isolation for an audit must pair Flannel with another policy engine or choose a plugin that enforces it. Ask your assessor which control evidence they expect, then confirm with each vendor how policy is enforced and how a denied flow is recorded.

Identity-based or global policy

Standard NetworkPolicy selects pods by labels and namespaces, which works for simple isolation but becomes hard to reason about across many teams. Decide whether you need policy keyed to workload identity, cluster-wide rules that apply outside a namespace, or rules that also cover host endpoints. Those needs point toward Calico's global policy objects or Cilium's identity model, and they affect how much policy authoring your team will own.

Pod-to-pod encryption on the wire

Decide whether traffic between nodes must be encrypted inside the cluster network, for example to meet a internal data-in-transit rule or to protect traffic that crosses untrusted segments. Encryption is typically provided by the plugin through WireGuard or IPsec, and it adds CPU cost and operational steps such as key handling and MTU planning. Confirm which encryption modes each plugin supports on your node OS before you commit.

Kernel and node operating system

The data plane choice depends on what the nodes run. eBPF-based data planes need a sufficiently recent Linux kernel with the required features enabled, while iptables-based modes work on older kernels. Check the kernel version, the container runtime, and whether your hardened OS image restricts BPF or netfilter modules. Record these facts before the design review, because upgrading a kernel across a fleet is often slower than choosing a plugin.

Windows worker nodes in scope

If any Windows worker nodes are planned, eliminate plugins that do not support them in your target release before evaluating anything else. Windows support varies by plugin and by network mode, and some features that work on Linux nodes, such as certain policy or encryption options, may be missing or different on Windows. Ask each vendor for the exact Windows feature matrix and test it on a node pool that matches your production image.

Flow visibility for the security team

Security operations teams often need to see which pods talked to which services, which flows were denied, and why. Decide whether a dashboard of allowed and dropped flows is enough, or whether you need per-flow logs that feed a SIEM for investigations. Plugins differ in whether flow data comes built in, requires an extra component, or is only available in a commercial tier, so ask for the retention and export options that your analysts will need.

The decision path from requirements to a CNI plugin

The diagram starts from the cluster requirements that narrow the choice: whether NetworkPolicy must be enforced, whether pod traffic must be encrypted, whether Windows nodes are in scope, what kernel and node operating system constraints apply, and which distribution the cluster is built with. Each answer moves the decision toward one plugin, and the path ends at Calico, Cilium or Flannel. Flannel alone does not enforce NetworkPolicy, so a policy requirement rules it out unless a separate policy engine is added. Treat the path as a decision aid, not a recommendation, and confirm each branch against the plugin documentation and your distribution's bundled defaults.

A decision aid for narrowing the CNI plugin choice, not a recommendation.

eBPF versus iptables data planes and what they change in operations

The data plane decides how packets for Services and Pods are actually forwarded, and that choice changes how you troubleshoot a cluster. With the iptables data path, kube-proxy and the CNI program rules in the kernel's netfilter chains, so a packet's path can be traced by reading chain rules on the node. With an eBPF data path, such as Cilium's, forwarding logic runs as eBPF programs attached to network hooks, and service translation may happen in maps rather than long rule chains. Your on-call engineers need to know which of these they are debugging before an incident, because the commands, the tools and the failure signatures differ. Calico can run either its standard Linux data plane or its eBPF data plane, so confirm which mode each cluster uses before writing runbooks.

Choosing eBPF starts with a kernel check on every node pool, not only the control plane. Kernel features that the eBPF data plane depends on vary by project and release, and older node images, hardened operating system builds or custom kernels can lack them. Confirm the exact minimum kernel version, required kernel configuration options and any cgroup or BPF filesystem requirements in the current documentation for the project and version you plan to run. Also confirm whether kube-proxy replacement is supported in your chosen mode, whether it can be run alongside kube-proxy during migration, and what happens to existing Service connections during the switch. Record the result per node pool, because a single older pool can block a rollout or force split scheduling.

Upgrade risk changes with the data plane. A kube-proxy replacement moves Service handling out of a component that Kubernetes ships and tests with each minor release, and into the CNI project's release cycle, so the CNI version becomes a tighter constraint on your Kubernetes upgrade plan. Check the CNI's compatibility matrix against the Kubernetes versions you run now and the versions in your upgrade path, and test node kernel upgrades in a staging pool first. Plan a rollback that you have actually rehearsed, including how to restore kube-proxy and iptables rules if the eBPF path fails. Ask any vendor or integrator for the documented rollback steps and the observed behavior during a live data plane switch in a comparable environment.

How to evaluate and install the chosen CNI plugin

This sequence takes a CNI choice from paper to a verified pilot cluster, with network policy tested, encryption and flow visibility confirmed where required, and a recorded upgrade path. It gives the platform team evidence for the decision before the plugin reaches production clusters.

  1. Confirm CIDRs, node OS and kernel

    The platform engineer records the planned pod and service CIDRs, the node operating system, the kernel version and the container runtime for every node pool, and checks them against the installer's supported matrix. Confirm with the plugin's documentation whether the chosen release supports the kernel features your data plane needs, and whether the pod CIDR overlaps any range used by the corporate network, VPN or on-premises routing. Done means a written table of node pools, kernels and CIDRs exists, and no overlap or unsupported kernel is open.

  2. Match the plugin to the installer

    Platform engineering checks how the chosen installer (kubeadm, RKE2, K3s, Talos or Kubespray) handles CNI selection, since some installers bundle a default plugin and others expect you to disable it at cluster creation. Decide whether the plugin is installed by the installer configuration or by a separate Helm or manifest step, and confirm which installer flags disable the bundled network component. Done means a written installer configuration names the plugin, the pod CIDR it uses and the exact flags that disable any default, and a dry run of that configuration produces the expected manifests.

  3. Build a pilot cluster

    The team builds a small non-production cluster that mirrors the production node OS, kernel and installer, with the chosen plugin installed. The check is that all nodes reach Ready, pods receive addresses from the planned pod CIDR, and pods on different nodes can reach each other and a Service. Record the plugin version, the installer version and the exact install command so the build can be repeated. Done means a pod-to-pod and pod-to-Service test passes on every node pool.

  4. Apply and test default-deny policy

    Apply a default-deny ingress and egress policy to a test namespace, then deploy a client and a server pod and confirm that traffic is blocked. Add an explicit allow rule for the approved path and confirm that only that path works. Also confirm that the plugin enforces policy at all: a plugin that does not enforce NetworkPolicy will pass the setup steps while silently allowing everything. Done means blocked traffic, allowed traffic and a recorded test result for each rule, with the test manifests stored in version control.

  5. Verify encryption and flow visibility

    If your requirements call for encryption of pod-to-pod traffic or per-flow visibility, the platform team enables and tests those features in the pilot. Confirm with the vendor documentation which encryption mode the plugin offers, whether it needs kernel or key-management prerequisites, and how it interacts with your node MTU. For flow visibility, generate known traffic and confirm the flow records show the source, destination, verdict and namespace. Done means a packet or flow capture proves encryption is active and a sample flow record matches the traffic you generated.

  6. Test node and control plane upgrades

    Run a plugin upgrade on the pilot cluster from the current release to the next supported release, following the plugin's upgrade notes and the Kubernetes version skew policy for the cluster components. Repeat the connectivity and policy tests after the upgrade, and time the rollout so you know how long pod networking is disrupted. Done means the pilot passes the same tests before and after the upgrade and the disruption observed is written down.

  7. Record the plugin upgrade path

    The platform team writes down the supported upgrade path for the chosen plugin against each Kubernetes minor version you plan to run, the vendor's support window for each release, and the owner who watches release notes. Ask your vendor or distribution to confirm which plugin versions they support with your installer version. Done means a signed-off runbook lists the current plugin version, the target version, the upgrade test result and the trigger for the next review.

Security and operational considerations for the network plugin

The network plugin sits in the cluster's trust path: it runs on every node, decides which pods can talk to which, and may hold encryption keys. The cards below cover the risks and controls to settle before you pick Calico, Cilium or Flannel, and before the plugin goes into production.

Privileged plugin components on every node

The CNI plugin usually runs as a DaemonSet with host networking and elevated privileges, and it writes configuration into each node's CNI directory. A compromised agent can read or redirect traffic on that node. Ask the vendor or distribution which capabilities, host paths and hostNetwork settings the agent requires, and whether the Pod Security Standards need a privileged exception for the plugin namespace only, with application namespaces kept at a stricter level.

Pod Security Standards

Default-allow pod traffic

Kubernetes pods can reach each other by default unless a NetworkPolicy selects them, and a plugin that does not enforce policy will accept policy objects without applying them. Confirm that the chosen plugin enforces NetworkPolicy in your configuration, then decide on a baseline: a default-deny policy per namespace, with explicit allow rules for DNS, ingress controllers and monitoring. Test that a blocked connection really fails before you rely on it.

Policy audit and version control

Network policy drifts when teams apply ad hoc rules with kubectl. Store policies in Git, deploy them through a reviewed pipeline, and run periodic comparisons between the repository and live objects. Check whether the plugin offers its own policy types (for example, cluster-wide policies) and whether those live outside the standard Kubernetes objects, since that changes how your audit tooling reads them.

Wire encryption key handling

Where the plugin offers WireGuard or IPsec encryption between nodes, key material is generated, distributed and rotated by the plugin or the distribution. Confirm where keys are stored, how they rotate, what happens to traffic during rotation, and whether node compromise exposes keys for other nodes. Record the answers in the design document, since they feed the review your security team will run on the cluster.

Staging tests before production policy

Enforcing policy in production can break DNS, health checks, admission webhooks and monitoring scrapes that nobody listed. Build a staging cluster with the same plugin version, data plane mode and policy set, then replay representative traffic and confirm the expected denies and allows. Keep a rollback path for each policy change, and record the results so the same checks run again at each plugin upgrade.

What it costs to change CNI plugins after workloads are running

Changing the CNI plugin on a cluster that already runs workloads is a disruptive migration, not a configuration change. Pods receive their network addresses from the CNI plugin's IPAM, so moving from one plugin to another usually means draining nodes, recreating pods, and confirming that every workload comes back on the new data path. Plan for node or pod restarts during the change window, and confirm with your platform team which services can tolerate them. Before any work starts, check whether the target plugin needs a different pod CIDR, overlay mode, or kube-proxy arrangement, because those changes alter addressing that other systems may depend on, including firewall rules, load balancer pools and routing to external networks.

The largest cost driver is the number of NetworkPolicy objects and the namespaces that carry them. Each policy written against one plugin's behavior must be translated, tested and reviewed against the target plugin's semantics, and plugin-specific resources such as global or cluster-wide policies have no direct equivalent in every alternative. Node count matters too, since every node must be drained, reconfigured and verified, and the number of change windows you can use sets how long the migration takes. Team skills are often underestimated: operators who know iptables troubleshooting may need new tools for eBPF data paths, and that gap extends the testing period and raises the risk of a rollback that is hard to execute under pressure.

Because these costs depend on your environment, ask any implementation partner for a written migration plan and estimate before agreeing to a change. The plan should list the policy inventory and translation method, the node and namespace rollout order, the rollback procedure with its criteria, the staging environment used for rehearsal, and the verification steps for connectivity, policy enforcement and DNS. Ask which items are one-time work and which recur, such as policy maintenance and plugin upgrades after the move. Choosing the right plugin at the start of the project avoids most of this expense, so confirm the choice against the requirements in this guide before the cluster carries production traffic.

Questions teams ask before choosing or changing a CNI plugin

Which CNI plugin supports Kubernetes NetworkPolicy?

Calico and Cilium both enforce Kubernetes NetworkPolicy, and both extend it with their own policy resources for cluster-wide rules and richer matching. Flannel does not enforce NetworkPolicy on its own, so a cluster that depends on NetworkPolicy needs either a different plugin or a separate policy engine layered on top of Flannel. Confirm the exact policy features your controls require against each project's current documentation, since extended policy resources differ between Calico and Cilium. Ask any partner to map each policy requirement to the enforcing component and test it in a staging cluster before you rely on it.

Can Flannel be used in a regulated cluster?

Flannel can carry pod traffic, but it lacks built-in NetworkPolicy enforcement and encryption, so regulated environments usually need compensating controls or a different plugin. Whether it is acceptable depends on your framework, your segmentation design and how you evidence isolation to auditors. Ask your compliance lead which controls depend on network isolation and encryption in transit, then document how each is met. Any assessment outcome comes from the independent auditor, not from the implementation partner.

How does an eBPF data plane change kernel requirements?

An eBPF data plane depends on a sufficiently recent Linux kernel with the eBPF features the plugin uses, so kernel version and distribution choice become part of the node build. Cilium and Calico's eBPF mode both have documented kernel and configuration prerequisites that differ by release, and some combinations of distribution kernels and cloud images are not supported. Check the minimum kernel for your chosen version before you order hardware or fix an OS image, and confirm that your node hardening baseline allows the required kernel modules and settings.

Do Windows nodes work with Calico, Cilium and Flannel?

Windows node support varies by plugin and by version, so do not assume parity across the three options. Check each project's Windows documentation for the features you need, such as pod networking modes, NetworkPolicy behavior and load balancing, and confirm them against the Windows Server versions you plan to run. If mixed Linux and Windows clusters are required, ask for a written test matrix covering pod connectivity, policy enforcement and service access before committing.

What does changing the CNI plugin cost, and how long does it take?

The main cost is downtime and rework rather than licenses, because changing the plugin on a running cluster touches pod networking on every node. Drivers include cluster size, how many workloads depend on NetworkPolicy, whether IP address ranges change, the number of environments, and how much of the change window can be scheduled. Ask for a quote that lists the migration rehearsal, node-by-node cutover, rollback steps, policy re-testing and post-change validation as separate line items. Duration should come from your own environment and a written scope rather than a generic figure.

Can our team change the CNI plugin without outside help?

A capable platform team can change the CNI plugin alone if it has tested the procedure in a non-production cluster and has an approved rollback path. The risk is concentrated in the cutover: pod networking, NetworkPolicy and service routing can all break at once if the sequence is wrong. Assess your team's experience with cluster networking, your change-window constraints and your on-call coverage before deciding. A partner can take on rehearsal, cutover support and verification, while your team keeps ownership of the platform afterward.

What should we give a partner before asking for a CNI quote?

Provide the Kubernetes version, node operating systems and kernel versions, the cluster topology, current pod and service CIDRs, the list of NetworkPolicy requirements, encryption and observability needs, Windows node plans and the maintenance windows you can use. Also share the compliance controls that depend on network behavior, the number of clusters and environments, and who signs off on the change. A written scope built from these inputs lets the quote separate assessment, rehearsal, cutover and handover, which makes comparison straightforward.

Limits to confirm in your own environment

The CNI choice depends on facts that change between releases and environments. The cards below list the points to confirm with the project or vendor before you build, because a plugin that fits your policy model can still fail on your kernels, installer, network or edition.

Feature support in your version

Confirm that the exact plugin version you plan to run supports every feature in your design, including NetworkPolicy behavior, eBPF data plane mode, encryption and any kube-proxy replacement. Feature support often differs between releases and between the open-source and commercial builds, so check the release notes for the version you will pin, not the latest documentation. Kubernetes itself ships roughly three minor releases a year, so the CNI must track the cluster version you plan to run.

Kubernetes minor releases
3 per year
Kubernetes skew policy

Windows node support status

If any worker nodes run Windows, confirm with the project whether the plugin, its data plane and its policy features are supported on Windows for your target Kubernetes version. Support is often narrower than on Linux, with some policy features, encapsulation modes or data planes unavailable. Record the gap in writing so application teams do not assume Linux behavior on Windows pods.

Kernel and node OS compatibility

Check the minimum kernel version and required kernel modules for the data plane you choose, especially if you plan to use eBPF, which depends on specific kernel features. Confirm the supported distributions and versions for your node operating system, including any hardened or minimal images your security team requires. Test on the exact kernel your node image ships, because a kernel patch upgrade can change behavior.

Installer and cloud provider interaction

Confirm how the plugin is installed and whether your installer, such as kubeadm, RKE2 or a cluster API provider, expects a particular CNI or leaves pod networking to you. Check whether the cloud provider's node or load balancer controllers assume a specific routing mode, and whether the provider's managed networking conflicts with the plugin's IPAM or routing. Ask the vendor which installation method they test against.

MTU and overlay behavior

Measure the MTU of the existing network path and confirm the overlay encapsulation overhead the plugin applies, since mismatched MTU causes stalled connections that look like application faults. Check whether the plugin supports routing without encapsulation on your network, and whether your switches, firewalls and virtual networks permit the encapsulation protocol. Confirm the setting with the network team before the first node joins.

Vendor-specific features in commercial editions

Confirm which observability, encryption, policy and multi-cluster features exist only in commercial editions or managed offerings, and which are open source. Ask the vendor to name each feature and its edition in writing, and check whether support and upgrade terms change with the edition. Plan for the cost of moving later if a feature you depend on is commercial only.

How DeployOpen scopes and delivers Kubernetes networking work

DeployOpen approaches the choice between Calico, Cilium and Flannel as a written design decision, not a default. We test each candidate against your policy model, kernel and distribution constraints, and operating team before any cluster is changed. The work runs inside your own infrastructure, so the network design stays under your control.

How we scope

  • Engagements are fixed-scope, with the CNI decision, target distribution and deliverables agreed in writing before work starts.
  • Scope covers NetworkPolicy requirements, data plane choice, encryption and observability needs, and Windows node requirements, if any.
  • Ask for the scope to name the distribution, kernel versions and node operating systems the recommendation applies to.

How we build

  • We build a lab or staging cluster that matches your distribution and node images so the plugin choice is tested, not assumed.
  • Policy tests cover allowed and denied flows across namespaces, and check that enforcement behaves as the design states.
  • Install, upgrade and rollback steps for the chosen plugin are scripted and rehearsed before they reach production clusters.

How we hand over

  • You receive the written decision record, comparison notes, network policy baseline and the configuration committed to your repositories.
  • Runbooks describe plugin upgrades, CIDR changes, and the steps to switch data planes or encryption settings later.
  • Knowledge transfer sessions walk your platform and security engineers through the design and the test results.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retainers can cover plugin version reviews against each Kubernetes minor release you run, with the upgrade path documented.
  • Re-testing of network policy after cluster changes can be added to the retainer scope when your environment changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.