Skip to main content
Lexicon
Lexicon

Ambient Mesh

Difficulty: Advanced
3 min read

In plain English

Plain definition

A service mesh design that moves mTLS and L4 policy enforcement into a shared per-node proxy (ztunnel) and L7 routing/policy into an optional per-namespace waypoint proxy, eliminating the need for a sidecar container in every pod.

Traditional sidecar-based meshes (Istio classic, Linkerd) inject an Envoy or similar proxy container into every application pod, intercepting all ingress/egress traffic via iptables or eBPF redirection. This gives per-pod isolation but multiplies memory/CPU footprint linearly with pod count, complicates upgrades (every sidecar must be rolled), and breaks assumptions in tools that inspect pod network namespaces or count containers per pod. Ambient Mesh removes the per-pod proxy entirely and instead runs a shared ztunnel (zero-trust tunnel) DaemonSet per node, which handles L4 concerns for all pods on that node: mTLS origination/termination, workload identity via SPIFFE-style certificates, and basic L4 authorization policy.

L7 features — HTTP-level routing, retries, circuit breaking, header-based authorization — are handled by an optional, separately scaled waypoint proxy, deployed for a namespace or for selected services or workloads rather than per pod. Traffic flows from a source pod, through the local node’s ztunnel over an HBONE (HTTP-Based Overlay Network Environment) tunnel, to the destination node’s ztunnel, and only detours through a waypoint if L7 policy is actually attached to that workload. This means the vast majority of east-west traffic that only needs mTLS and L4 policy never touches an L7 proxy at all, which is the core latency and resource win over sidecar meshes where every packet always traverses two full Envoy instances.

Under the hood, ztunnel uses the kernel’s socket redirection (rules that the istio-cni node agent installs inside each pod’s network namespace, independent of the cluster CNI) to capture traffic transparently without modifying the pod spec, and ztunnel fetches a SPIFFE certificate from the mesh CA for each workload identity (service account) on its node, never using its own identity for workload mTLS. Edge cases that bite operators in practice: (1) HBONE tunneling adds a double-encapsulation cost that shows up in packet-capture-based debugging, since raw pod-to-pod pcaps show tunnel headers, not application protocol frames directly; (2) waypoint proxies become a shared blast radius — a namespace-scoped waypoint outage affects every workload with L7 policy in that namespace, unlike sidecar failures which are isolated per pod; (3) node-level ztunnel is a single point of mTLS termination per node, so a compromised node has broader traffic visibility than a compromised sidecar would; (4) partial migration states (some namespaces on ambient, others on sidecar) require careful planning: sidecar and ambient workloads can talk to each other over HBONE, but traffic from sidecars and gateways bypasses waypoints, so L7 policy enforced at a waypoint does not apply to it.

Architecturally, Ambient Mesh trades per-workload fault isolation for a dramatic reduction in per-pod overhead and operational friction, making it viable to mesh large multi-tenant clusters where sidecar injection was previously cost-prohibitive; the tradeoff decision ultimately hinges on whether the security and blast-radius benefits of sidecar-level isolation outweigh the resource and upgrade-velocity gains of a shared node/namespace proxy tier.

About this page

Credited to

Dates

Published

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

More from KBY that goes with this term.