Skip to content

Linux Foundation Black Friday Sale: Up to 65% off Save now

Back to the blog
CNCF projects6 min read

What is Cilium? eBPF networking for Kubernetes explained

Sajeeva Nambadawa Vithanage25 Nov 2026 · Senior Software Site Reliability Engineer

Cilium is the networking, security and observability layer that many Kubernetes clusters now run on. So what is Cilium, exactly? It's a CNCF graduated project, built on eBPF in the Linux kernel, that can replace your CNI plugin, kube-proxy and parts of a service mesh in one install.

If you're studying for the CKA, the new CKNE or the Cilium Certified Associate, it's worth understanding how it works, because the ideas behind it (identity-based policy, eBPF datapaths, Gateway API) keep showing up. Our Cilium project page has its CNCF details and links.

Key points

  • Cilium provides networking, network policy, load balancing and observability for Kubernetes, using eBPF programs in the Linux kernel.
  • It joined the CNCF at the incubating level on 13 October 2021 and graduated on 11 October 2023.
  • Policies are based on workload identity (labels), not IP addresses, and can go up to layer 7: HTTP methods and paths, gRPC calls, DNS names.
  • Hubble, built on Cilium, shows you which services talk to each other and which connections were dropped by policy.
  • There's a dedicated exam, the Cilium Certified Associate (CCA), and a Linux Foundation course, LFS146.

What is Cilium: the problem it solves

In a standard cluster, Pods get their network from a CNI plugin, Services are implemented by kube-proxy with iptables or IPVS rules, and NetworkPolicy is enforced on IP addresses. That works, but iptables rules grow with every Service, IP addresses change all the time as Pods come and go, and you see very little of what's happening on the wire.

Cilium moves this work into eBPF: small programs loaded into the Linux kernel that run on network events. Cilium's documentation describes eBPF as the way it inserts security visibility and control logic into the kernel dynamically, without changing application code or container configuration.

The result is one component that handles:

  • Networking (CNI): an overlay with VXLAN or Geneve, or native routing, with BGP when you need it.
  • Load balancing: eBPF hash tables for Services, which can replace kube-proxy entirely, plus XDP, Direct Server Return and Maglev hashing for traffic coming in from outside.
  • Network policy: Kubernetes NetworkPolicy and Cilium's own policies, from layer 3 to layer 7.
  • Encryption: transparent encryption between workloads with IPsec or WireGuard.
  • Service mesh: L7 traffic management and a Gateway API implementation, without sidecar proxies.
  • Cluster Mesh: service discovery, failover and policy across several clusters.

Maturity: graduated since 2023

The CNCF accepted Cilium on 13 October 2021, straight in at the incubating level, and it graduated on 11 October 2023. Graduation means the project has passed the CNCF's bar for adoption, governance and a security audit. In practice, several managed Kubernetes services use Cilium for their datapath, so you may already be running it without knowing.

How Cilium works

A Cilium agent runs on every node, usually as a DaemonSet. It watches the Kubernetes API for Pods, Services and policies, and compiles what it learns into eBPF programs and maps on that node.

The key idea is identity. Cilium gives each group of Pods with the same labels a numeric security identity. Policy decisions use that identity rather than the Pod's IP address, so they keep working while Pods are rescheduled and IPs change.

Hubble sits on top. It reads the flow data Cilium already has and answers questions like: which services call this one, where are the DNS failures coming from, which HTTP calls return errors, which connections did policy block.

A small Cilium example: an L7 policy

Kubernetes NetworkPolicy stops at ports. Cilium can go further. This policy, from Cilium's documentation, lets Pods labelled env: prod call only GET /public on Pods labelled app: service:

apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
metadata:
  name: "rule1"
spec:
  description: "Allow HTTP GET /public from env=prod to app=service"
  endpointSelector:
    matchLabels:
      app: service
  ingress:
  - fromEndpoints:
    - matchLabels:
        env: prod
    toPorts:
    - ports:
      - port: "80"
        protocol: TCP
      rules:
        http:
        - method: "GET"
          path: "/public"

A POST /public or a GET /admin from the same Pod is rejected, even though the port is open. If you want the basics first, our Kubernetes network policy example starts with standard NetworkPolicy.

Cilium and similar projects

Other CNI plugins. Flannel is the simple option: it gives Pods a network and little else. Calico is the long-standing alternative for policy-heavy clusters, with its own eBPF mode. Cilium's difference is how much it builds on eBPF and identity, and how far its policy and observability go.

Service meshes. Istio and Linkerd give you mTLS, retries and traffic shifting, traditionally with a proxy per Pod. Cilium's mesh covers L7 policy, ingress and Gateway API without sidecars. Some teams run Cilium as the CNI and Istio as the mesh; which split is right depends on how much L7 you need.

kube-proxy. With kube-proxy replacement on, Cilium handles Services itself. With kube-proxy's IPVS mode now scheduled for removal, more clusters will look at this choice.

How to get started with Cilium

The quickest route is a local cluster (kind or minikube) and the Cilium CLI. The official quick install guide downloads the CLI, then runs:

cilium install --version 1.20.5
cilium status --wait
cilium connectivity test

The connectivity test deploys test workloads and checks Pod-to-Pod, Pod-to-Service and policy behaviour, which is a good way to see what Cilium does before you read the theory. Then try the L7 policy above, turn on Hubble, and watch the flows.

If you want something structured, the Linux Foundation's Introduction to Cilium (LFS146) is the starting course. When you're ready to prove it, the Cilium Certified Associate (CCA) is a 90-minute, online, multiple-choice exam (US$250). Its domains are Architecture (20%), Network Policy (18%), Service Mesh (16%), Network Observability, Installation and Configuration, Cluster Mesh and eBPF (10% each), and BGP and External Networking (6%).

For the project's history, maturity and our other posts about it, see the Cilium page on CertDirectory.

FAQ

What is Cilium used for? As a Kubernetes CNI that also handles load balancing, network policy up to layer 7, encryption and network observability, all built on eBPF.

Is Cilium a service mesh? It can act as one. It offers L7 traffic management and a Gateway API implementation without sidecars, but many teams use it as the CNI alongside a separate mesh.

What is the difference between Cilium and Calico? Both are CNI plugins with network policy. Cilium builds on eBPF and label-based identity throughout, with L7 policy and Hubble for observability; Calico started with iptables and offers eBPF as a mode.

Can Cilium replace kube-proxy? Yes. Cilium can implement Kubernetes Services with eBPF, so you can run a cluster without kube-proxy.

Is there a Cilium certification? Yes: the Cilium Certified Associate (CCA), a multiple-choice exam from the CNCF and the Linux Foundation.

Sources

Spin up a kind cluster tonight, install Cilium and run the connectivity test: it's the fastest way to see what it does.