What is
Cilium
?
Cilium is open-source software that provides networking, network security and observability for Kubernetes clusters, using eBPF in the Linux kernel to route traffic, enforce policies and load-balance services.
At a glance
Attribute | Value |
|---|---|
Primary use case | eBPF-based Kubernetes networking, network security and observability |
Deployment type | Self-managed on Kubernetes clusters (Helm, Cilium CLI or distribution installers) |
Pricing model | Free open source (Apache 2.0); enterprise support available |
API compatibility | Cilium agent API; gRPC API (Flow, Observer, Peer, Relay, Datapath Plugin); SDP gRPC API; Kubernetes CRDs |
Supported integrations | Including Prometheus, Grafana, Helm, etcd, OpenShift OKD, Broadcom VMware ESXi / NSX, K3s, k0s, Kind, kubeadm, Kops, Kubespray, Rancher, Azure CNI Powered by Cilium in AKS, Kata Containers |
Source type | Open |
Cloud provider | Including Azure (AKS via Azure CNI Powered by Cilium) |
Key metrics | Vendor-reported: 25804 GitHub stars |
AEP branch | Tooling |
AEP category | Resources |
AEP subcategory | Networking |
Profile
The Cilium agent programs an eBPF datapath in the Linux kernel that handles routing, IP address management and masquerading for workloads. Workloads are tracked as endpoints with labels and security identities, and policy is enforced on those identities. The Cilium operator runs alongside the agent. State is kept in a data store, optionally an external etcd key-value store. Hubble is the observability component. The Cilium CLI and a local agent API support installation and management.
Background
Cilium is a CNCF graduated project since October 11, 2023. It is licensed under the Apache License 2.0.
Features
Network policy enforcement
Applies Layer 3, Layer 4 and Layer 7 policies, including HTTP-aware, DNS-based, deny and host policies. Lets teams restrict traffic between containers and lock down external access, with specific guidance for securing gRPC and Elasticsearch.
Hubble network observability
Records network flows that can be inspected through a CLI, a service map and the Hubble UI, with Layer 7 protocol visibility. Cilium and Hubble metrics can be collected with Prometheus and charted in Grafana.
Kubernetes without kube-proxy
Runs Kubernetes service handling without kube-proxy, using eBPF service load balancing. Adds a BGP control plane, LoadBalancer IP address management and L2 announcements (beta) for exposing services.
Cluster Mesh
Connects multiple clusters with cross-cluster load balancing, service discovery, service affinity and network policy, so services can span clusters.
Encryption and egress control
Offers transparent encryption of workload traffic and an egress gateway for outbound traffic, plus a host firewall for node-level protection.
Pros and cons
Pros
One component covers cluster networking, security policy and traffic observability, reducing the number of separate tools to run.
Installs on many Kubernetes distributions and installers, including OpenShift OKD, K3s, k0s, Kind, kubeadm, Kops, Kubespray and Rancher.
Existing clusters can be migrated to Cilium, and enterprise support is available in addition to community Slack.
Cons
Self-managed: the team installs, upgrades, tunes and troubleshoots Cilium in its own clusters.
Depends on the Linux kernel, and advanced features require specific kernel versions, which can constrain node operating system choices.
Several capabilities are not yet stable, including VTEP integration, L2 announcements and multicast (beta) and the standalone DNS proxy (alpha).
Migrating an existing cluster to Cilium has stated limitations that need review before cut-over.
FAQs
What is Cilium?
Cilium is a networking layer for Kubernetes that uses eBPF to move packets, balance service traffic and enforce security rules, with Hubble providing visibility into network flows.
How is Cilium licensed and what does it cost?
The code is released under the Apache License 2.0, so it can be used and modified without a license fee. Enterprise support is offered for teams that want backing beyond the community channels.
How is Cilium deployed?
Cilium is installed into a team's own Kubernetes clusters using Helm, the Cilium CLI or the installer of a Kubernetes distribution, and can also be added to an existing cluster through a migration procedure.
Which platforms and tools does Cilium work with?
It supports distributions and installers such as OpenShift OKD, K3s, k0s, Kind, kubeadm, Kops, Kubespray and Rancher, can be used in AKS through Azure CNI Powered by Cilium, and exports metrics for Prometheus and Grafana.
Can Cilium connect more than one cluster?
Yes. Cluster Mesh links clusters so that services can be discovered and load-balanced across them, with network policy applied across cluster boundaries.
What are the system requirements?
Cilium runs on Linux nodes and relies on kernel eBPF support; some advanced features need newer kernel versions, so node operating systems should be checked before adoption.
