Service Mesh vs eBPF-Native Data Planes: How to Choose

Compare sidecar meshes, ambient meshes, and eBPF-native data planes across performance, identity, L7 policy, and Kubernetes operational complexity.

By · · Updated · 10 min read

If you run Kubernetes past a few dozen services, sooner or later you’ll probably have the service mesh vs eBPF argument. One side looks at the CPU graphs for the whole fleet and says the Envoy sidecars cost too much. The other side says that doesn’t matter if you can’t shift 10% of traffic to a new version without touching application code. I think both are right. You choose between how much a data plane costs to run and how much it can do with a single request.

I wrote about eBPF for kernel-level observability and security in an earlier piece: Tetragon watching process exec, Cilium enforcing identity-aware policy in the kernel. This one is narrower, and people argue about it more. What should carry your service-to-service traffic, terminate mTLS, and make routing decisions on a live request? Choosing a kernel agent over a log-tailing daemon is a different decision, so I’m writing about this one separately.

The problem: what a traffic data plane actually has to do

A service mesh data plane answers four questions on every request: who is this caller, are they allowed to reach this destination, where should this specific request go, and what happens if the destination is slow or down. The first two are identity and policy. The last two are traffic management, and that’s where people really disagree.

Identity-aware network policy and transport protection are available in both approaches, but the guarantees differ. Sidecar meshes use proxies for workload mutual TLS. Cilium can enforce L3/L4 policy in the kernel and offers separately configured encryption mechanisms. I’d check workload authentication, encryption coverage, and policy enforcement as separate requirements, on the release you run.

The argument starts at layer 7. Take a canary rollout that shifts 10% of traffic to a new version based on a request header. Or a retry policy that gives a flaky downstream two attempts with a two-second per-try timeout, but only for idempotent methods. Or a circuit breaker that stops sending traffic to an instance when it starts erroring, so nobody has to be paged to do it by hand. All of these decisions are per request and need to understand the protocol. Something has to parse HTTP framing, read headers, count errors per upstream, and hold that state. You can’t get this from a raw packet or a TCP segment. In practice you need a proxy in the request path that speaks the protocol.

Every L7 feature you want costs you a proxy hop somewhere, and every proxy hop you remove costs you an L7 feature. This trade-off hasn’t changed. But now there is much more middle ground between “proxy on every pod” and “no proxy anywhere”.

Reference architecture: sidecar mesh vs ambient vs eBPF-native L3/L4

There are three shapes running in production today, and the usual framing shows only two of them. Let’s put them side by side before choosing.

The classic sidecar model (Istio with Envoy, Linkerd with its own Rust micro-proxy) injects a proxy into every pod’s network namespace. Every request leaves the app container, hits the local sidecar, crosses the network to the destination’s sidecar, and only then reaches the destination app container. You pay two extra hops for every request, plus a TLS connection between the two sidecars, even if that request doesn’t need any L7 feature of the proxy.

The ambient model (Istio’s ztunnel plus optional waypoint proxies, with some similarity to Cilium’s own service mesh) moves the always-on part from one proxy per pod to one proxy per node. That per-node proxy (ztunnel) handles mTLS and L4 authorization for every pod on the node. It does not parse HTTP. When a namespace or service account really needs L7 behavior (retries, header routing, canary weighting), you deploy a waypoint proxy just for that workload, and only that traffic takes the extra hop. Everything else gets identity and encryption without L7 proxy in the path.

The eBPF-native model, in its purest form, has no proxy at all for L3/L4. Cilium’s agent programs the kernel data path (tc/eBPF and socket-level load balancing) to enforce identity-based policy and, optionally, transparent WireGuard or IPsec encryption between nodes. The kernel handles this traffic, with no per-pod or per-node proxy process. Where Cilium supports L7 policy, it runs through a shared per-node Envoy instance, only for the specific traffic that needs it. This is close to the waypoint idea, but it comes from the CNI side.

A sidecar mesh sends traffic between application pods through a proxy beside each pod, with mutual TLS between the proxies. An ambient mesh uses a tunnel on each node for mutual TLS and layer 4 authorization, with an optional waypoint for layer 7 processing. The eBPF-native path uses kernel programs on each node for load balancing and identity policy, with WireGuard or IPsec encryption between nodes and no layer 7 proxy in the illustrated path.

For all three I’d ask the same thing: where does the always-on cost live, and how much of your traffic pays it. Sidecar, ambient, and eBPF-based deployments place that work in different parts of the traffic path. Istio ambient separates its L4 tunnel from optional L7 waypoints. For Cilium, check the configured policy, encryption, and proxy paths together before you compare the cost with a mesh.

Service mesh vs eBPF: decision criteria for the data plane

Criteria Sidecar Mesh (Istio/Linkerd classic) Ambient / Sidecarless (Istio ambient, Cilium Service Mesh) eBPF-Native L3/L4 (Cilium core, no L7 proxy)
L7 feature richness Full: retries, timeouts, outlier detection, weighted/canary routing, header and path routing, fault injection, on every meshed pod Full, but opt-in: same feature set, available only where you deploy a waypoint (or Cilium’s per-node Envoy) for a given workload None at the pure L3/L4 layer; Cilium network policy covers method/path/header authorization; weighted splitting goes through Envoy, for example with Cilium’s Gateway API support
mTLS / identity model SPIFFE-based workload identity, cert issued and rotated by the mesh CA, TLS terminated per-connection on both sidecars Same SPIFFE identity model, terminated at ztunnel (node-level) instead of per-pod; waypoint adds L7-aware authorization where deployed WireGuard/IPsec encryption when configured; policy uses Cilium security identities. Workload authentication and encryption coverage depend on the enabled mechanism and release
Per-request overhead / latency Highest: two proxy hops per request and a proxy in every pod, regardless of features used Lower: one node-level hop for L4; an extra hop only for workloads with a waypoint Lowest: kernel data path, no userspace proxy hop for L3/L4 traffic
Operational maturity Very high: years of production use, large operator community, well-understood failure modes Newer: same control-plane maturity underneath (Istio), smaller deployed base, fewer war stories at scale Cilium as a CNI/L3-L4 enforcement layer is mature and widely run; the L7 mesh story built on top of it is younger
Debuggability Well-trodden: Envoy admin API, access logs, kubectl exec into a specific pod’s sidecar Harder to attribute: one ztunnel serves many pods, so per-flow correlation takes more work; waypoint adds per-workload logs back where deployed Different skill set entirely: Hubble flow logs, cilium monitor, eBPF map dumps instead of proxy logs; no L7 retry/circuit-breaker state to inspect because it doesn’t exist
Kernel requirements None: runs in userspace, portable across kernel versions ztunnel/waypoint run in userspace; the underlying CNI may still want a modern kernel depending on choice Real: wants a modern kernel with BTF for CO-RE, the same constraint covered in depth in the eBPF observability piece linked below
Best fit Teams that need L7 traffic shaping broadly and already operate Envoy comfortably Teams that want mTLS and L4 policy everywhere cheaply, but only need L7 traffic shaping on a handful of services Teams whose actual requirement is identity-aware network policy and encryption, not per-request traffic shaping

If more than a handful of your services need canary weighting, retry budgets, or header-based routing, you’ll end up running an L7 proxy somewhere, whichever side you start from. You only choose if it sits on every pod or only on the workloads that need it. If your services mostly need to prove who’s calling and enforce who’s allowed to reach what, that’s an L3/L4 problem. I wouldn’t pay for a full L7 proxy on every pod to solve it.

Traffic policy in practice: an Istio canary vs a Cilium identity policy

The easiest way to see the gap is to put both configs side by side for the same rollout. We’re shifting traffic to a new version of a payments service, with retries, and still restricting who can reach it at all.

Firstly, the Istio side. This canary sends 10% of traffic to v2, routes anyone with an x-beta-user header straight to v2 regardless of the split, and retries the weighted route up to two times, with a two-second per-try timeout, when the connection fails or the upstream refuses the stream:

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: payments-svc
spec:
  hosts:
  - payments.prod.svc.cluster.local
  http:
  - match:
    - headers:
        x-beta-user:
          exact: "true"
    route:
    - destination:
        host: payments.prod.svc.cluster.local
        subset: v2
  - route:
    - destination:
        host: payments.prod.svc.cluster.local
        subset: v1
      weight: 90
    - destination:
        host: payments.prod.svc.cluster.local
        subset: v2
      weight: 10
    retries:
      attempts: 2
      perTryTimeout: 2s
      retryOn: connect-failure,refused-stream
---
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
  name: payments-svc
spec:
  host: payments.prod.svc.cluster.local
  subsets:
  - name: v1
    labels:
      version: v1
  - name: v2
    labels:
      version: v2

I left 5xx and reset out of retryOn on purpose. Envoy doesn't check if the method is idempotent, so a payment POST that already went through could be sent again. This config expresses three separate per-request decisions. The idea is the same for a classic sidecar and an Istio ambient waypoint: the config model stays, and only the place where the proxy runs changes. Check what your Istio release supports on waypoints before you rely on it.

Now the identity side, as a CiliumNetworkPolicy. Only pods labeled app: checkout may reach payments on port 8080, enforced by identity rather than IP, in the kernel:

apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
  name: payments-allow-checkout
spec:
  endpointSelector:
    matchLabels:
      app: payments
  ingress:
  - fromEndpoints:
    - matchLabels:
        app: checkout
    toPorts:
    - ports:
      - port: "8080"
        protocol: TCP

The kernel data path enforces this policy on every packet. It survives pod IP churn because it matches on Cilium’s security identity rather than a source address, and it adds very little per-packet latency. But it has no concept of a request, and the VirtualService above works with requests in three different ways. Here there is no header to match, no percentage to weight, and no retry counter. You can extend the policy with Cilium’s own toPorts.rules.http block to match an HTTP method or path for authorization, and that’s really useful. It still won’t give you a 90/10 weighted split or a per-try timeout, and I wouldn’t wait for a release that adds them to this layer. Weighted canary and retry budgets work at the request level, so something has to hold per-request state. A per-packet kernel policy doesn’t do that.

Pitfalls, trade-offs, and what I’d actually ship

Don’t migrate off a working mesh because eBPF is a popular conference topic this year. If you remove Istio because sidecar CPU is a line item on the bill, you also have to rebuild the canary rollouts and retry policies that came with it. If your mesh works, your team can operate it, and the overhead isn’t blocking anything, then you already understand the cost. I’d keep it. Before you commit to a rewrite, measure the sidecar overhead on your own fleet. Don’t take the number from someone else’s blog post.

Know exactly which L7 features you’re giving up before you go sidecarless. Retry budgets, outlier detection that ejects a bad instance automatically, fault injection for chaos testing, header-based routing for staged rollouts: none of that exists at the pure eBPF L3/L4 layer. In ambient mode you have it only where you deployed a waypoint. Your mesh’s own telemetry can show which services use these features today. Do this audit before you assume that you can drop them for the whole fleet.

In my opinion, the hybrid is usually the right answer. Run eBPF for L3/L4 identity and encryption everywhere. It’s cheap, it survives IP churn, and every workload benefits, with or without L7. Then add an L7 proxy, either an Istio waypoint or Cilium’s per-node Envoy, only for the services that do canaries, retries, or header routing. I’d expect that to be a handful of services in most fleets. Ambient mode and Cilium Service Mesh both move to this architecture, from opposite directions.

Get precise about what “mTLS” means for the option you pick. Check where peer identities are verified, where traffic is encrypted, and which connections are covered. Cilium’s WireGuard/IPsec modes require configuration, and a node tunnel provides different guarantees from a workload TLS handshake. Check the authentication mechanism your release supports, then test the coverage you need. An encryption setting alone does not give you policy parity with an existing mesh.

Plan real time for learning to debug a kernel data path. On the pure kernel path there is no Envoy admin endpoint to curl and no access log with a request ID to grep. You work with cilium monitor, Hubble flow logs, and eBPF map dumps. Tracing a slow request back to a specific policy decision needs different habits than reading a sidecar’s access log. Let at least one engineer learn this before the migration, and don’t wait for the first incident after it.

Treat the migration itself as the risky part. The config models don’t translate: a VirtualService doesn’t map onto a CiliumNetworkPolicy. If you run both control planes at once, you have two identity systems and two sources of truth for who’s allowed to talk to whom. Pick one low-traffic, non-critical service as the pilot and run it in parallel with the old path for a full deployment cycle. Confirm policy parity against real traffic before you touch anything customer-facing.

References

Use these project documents to check which traffic paths and policy features your deployed releases support.

  • Networking: the full pillar on service meshes, eBPF-native data planes, and cloud networking trade-offs
  • Zero Trust: identity-aware segmentation and workload authentication patterns
  • eBPF in Production: Kernel-Level Observability and Security: the companion piece on eBPF for runtime security and observability, not the traffic data plane
  • Gateway API Migration: Retiring Ingress Without Breaking Traffic Management (coming soon): moving L7 routing off legacy Ingress controllers and onto Gateway API, sidecar or not

Let’s talk data planes

If you’re choosing between a sidecar mesh, ambient mode, and an eBPF-native data plane and want a second opinion on the architecture, I’m happy to compare notes. Connect with me on LinkedIn or reach out via Contact.