You already run Cilium as a CNI and the team is asking whether the Cilium Service Mesh feature replaces the Istio you were about to install. The answer is “for many use cases yes, but the trade-offs are different” — Cilium uses eBPF in the kernel for the data plane, one Envoy per node instead of one per pod, and the Gateway API for north-south. This article is the mental model we hand to clients before they commit one way or the other.
How to verify
If Cilium is installed, check the version and whether the service mesh capabilities are enabled:
cilium status
cilium version
kubectl -n kube-system get cm cilium-config -o jsonpath='{.data.enable-l7-proxy}'
L7 policy enforcement should show up on a node when you list Envoy listeners:
kubectl -n kube-system exec ds/cilium -- cilium-envoy --help-mode listeners
Gateway API CRDs should exist if you intend to use Cilium as an ingress:
kubectl get crd | grep gateway.networking.k8s.io
What’s happening
Cilium’s data plane is built on eBPF programs attached to network hooks in the Linux kernel — tc hooks on veth interfaces, XDP on physical NICs, socket-layer programs for service load balancing. The CNI itself does NAT-less service forwarding by rewriting packet headers in-kernel, replacing kube-proxy. The “service mesh” extension layers on top: identity-based policy via Cilium Network Policies (CNP/CCNP), mTLS using SPIFFE identities and certificates the agent manages, and L7-aware policy (HTTP path/method, Kafka topic, gRPC method) routed through a per-node Envoy that the Cilium agent provisions on demand.
The contrast with Istio sidecar mode is sharp. Cilium has no per-pod proxy by default — L4 is enforced in eBPF in the kernel, L7 is enforced by per-node Envoy only when a policy actually requires it. This is closer to Istio ambient than to sidecar. The contrast with Linkerd is also clear — Linkerd uses a per-pod Rust micro-proxy and does not rely on eBPF; Cilium uses eBPF for L4 and Envoy (per node) for L7. Where Cilium wins is when the cluster already runs Cilium as CNI and the team does not want a second piece of infrastructure. Where it loses is in maturity of multi-cluster mesh — Istio’s multi-network and east-west gateways are more battle-tested at the time of writing.
Components
- Cilium agent. A DaemonSet pod on every node that loads eBPF programs into the kernel and manages local Envoy when L7 is needed. It speaks to the API server, to other agents via the
clustermesh-apiserver, and to ETCD or KVStore for state. - Hubble. The observability layer. Hubble Relay aggregates flow data from agents; Hubble UI gives a graphical view of L3-L7 connections. See cilium-network-policy-hubble.
- Cilium Envoy. The L7 proxy. One per node, not per pod. It’s a fork of upstream Envoy with Cilium-specific filters for policy enforcement.
- Cilium Operator. Cluster-scoped controller for tasks that don’t fit in the per-node agent: IPAM, CRD reconciliation, identity allocation.
- clustermesh-apiserver. Service for multi-cluster connectivity — exposes endpoints and identities to remote clusters via ETCD-over-TLS.
When Cilium service mesh is the right answer
- You are already on Cilium as CNI and adopting a separate mesh would double the data plane footprint.
- You need L4 policy at high throughput; eBPF-in-kernel beats userspace Envoy under load.
- The L7 surface is narrow — a handful of services need HTTP-aware policy, the rest can stay at L4.
- The team is comfortable with Cilium’s release cadence (the project moves fast, and breaking changes between minors do happen — read the changelog before upgrading).
When you should pick something else
- You need multi-cluster mesh with strong east-west traffic guarantees today. Istio’s clustermesh is more mature.
- The application requires advanced L7 features (WASM filters, complex retry budgets, mirror-on-canary) that Cilium’s L7 layer does not yet expose as first-class config.
- The cluster runs a CNI other than Cilium and switching CNIs is too disruptive.
- Compliance demands a per-workload identity with a documented audit trail across multiple meshes — Istio’s tighter SPIRE story is easier to defend to an auditor.
Operational notes
- kube-proxy replacement is non-trivial to undo. If Cilium replaces kube-proxy and you later remove it, you must reinstall kube-proxy and restart every Service. Decide once and document.
- Per-node Envoy has resource implications. A node with no L7 policy uses no Envoy memory; a node with many L7 policies can use 200-400 MiB resident. Set agent resource requests accordingly and don’t oversubscribe nodes that you intend to host L7-heavy namespaces.
- eBPF program limits exist. Older kernels (5.4 and below) cannot run all Cilium features. Minimum kernel for production is typically 5.10+; for the full feature set including bandwidth manager and socket-based LB, 5.15+ is recommended.
- Hubble flow data is high-volume. Sending it all to a long-term store is expensive; sample or filter aggressively. Hubble’s TLS export to OpenTelemetry collectors is the cleanest path.
- Cilium and Istio sidecar can technically coexist, but the path is narrow. If you must, run Cilium in CNI-chaining mode and Istio in sidecar; do not enable Cilium service mesh L7 policy at the same time.
Stack Harbor designs the mesh choice with clients up front — Cilium vs Istio vs Linkerd, where the L7 layer lives, how policy is authored, and how the on-call sees a meshed packet from source to destination. If you’re standing up a cluster and need to make the decision once and correctly, see how we run managed Kubernetes operations for production fleets.