Istio sidecar vs ambient mode

Istio's sidecar mode puts an Envoy proxy in every Pod; ambient mode moves it to a ztunnel per node, with waypoints only where you need layer 7. How each works, Istio's own numbers side by side, and which mode to choose.

GazeekHEAD TO HEAD·EPISODE 3
EPISODE 3

Istio sidecar vs ambient mode

Istio's sidecar mode puts an Envoy proxy in every Pod; ambient mode moves it to a ztunnel per node, with waypoints only where you need layer 7. How each works, Istio's own numbers side by side, and which mode to choose.

0:00 / 6:57

Diagrams in this video · 3Free in archhy

Copy and edit in archhy: What a mesh adds (new tab)
Copy and edit in archhy: Where the proxy runs (new tab)
Copy and edit in archhy: Ambient at work: mutual TLS for the shop (new tab)

After this lesson you can

  • Explain what a service mesh adds to east-west traffic
  • Compare where the proxy runs in Istio's sidecar and ambient modes, with Istio's own numbers
  • Choose sidecar mode, ambient mode or both for a cluster
Transcript

Istio sidecar vs ambient mode

G'day. Space Llama here, with Head to Head, where two tools meet and you decide. Today, Istio's two modes: sidecar versus ambient. Same service mesh, two places to put the proxy. One puts a proxy in every Pod. The other moves it out, to the node.

What a mesh adds

First, what a service mesh is for. Picture a shop: users come in to a frontend, which calls a backend, which calls a database. Traffic in and out of the cluster is north-south. Calls between services inside it are east-west. Without a mesh, those east-west calls are plain text, unless every app encrypts its own. Nothing proves who is calling. A mesh puts a proxy on every call. Istio's control plane, istiod, configures the proxies and issues their certificates. So the proxies talk mutual TLS, Transport Layer Security, and every call carries an identity. No app code changes.

Where the proxy runs

Here's the whole difference in one picture. Sidecar mode on the left, ambient mode on the right. Sidecar mode: a webhook injects an Envoy proxy beside every app. Each one handles layer four and layer seven. Ambient mode: one ztunnel per node, written in Rust. Layer four only: mutual TLS, identity, policy and telemetry. Need layer seven, like HTTP routing? Add a waypoint: an Envoy Deployment outside your Pods, scaling on its own. To join ambient, you label the namespace. The Pods keep running. No restart. So sidecarless doesn't end the sidecar pattern. The proxy just moves, to the node and to a shared Deployment.

Sidecar mode today

Sidecar mode is the original. Istio has been built on it since its first release, in 2017. The proxy is injected when a Pod is created. So Pods restart to get one, and again for every Istio upgrade. Its old problems: the app starting before the proxy, the proxy stopping first, and Jobs that never finished. Native sidecars in Kubernetes fixed those, and Istio 1.27 turned them on by default, in August 2025. The catch: a single node with a kubelet older than 1.33 switches them off. Check your nodes.

Side by side

Side by side. Sidecar mode puts the proxy in every Pod. Ambient uses a ztunnel per node, plus waypoints for layer seven. Joining: sidecar mode needs a restart. Ambient needs only a namespace label. Latency, from Istio's own table, at the ninetieth to ninety-ninth percentile: sidecar mode, zero point six three to zero point eight eight milliseconds. Ambient: zero point one six to zero point two. With a waypoint, zero point four to zero point five. Keys: in sidecar mode, each workload holds its own. Istio calls that the strongest. Each ztunnel holds only the keys for its node's workloads. Sidecar mode supports virtual machines and EnvoyFilter. Ambient supports neither. Resources: Istio calls sidecars wasteful, sized per Pod for the worst case. Ambient shares its proxies per node and per waypoint.

Ambient at work: mutual TLS for the shop

Here's ambient doing the everyday job: mutual TLS between every service in the shop namespace. With Istio installed in ambient mode, one command labels the namespace. The frontend and the backend run unchanged. Their ztunnels carry the calls in mutual TLS, with workload certificates, through a tunnel built on HTTP. A PeerAuthentication policy in strict mode refuses plain text, and the ztunnel enforces it. No code changes, no restarts, and a layer seven proxy only where you ask for one.

Which mode, when

So which one? A few questions settle most cases. Few services, all in one language? A mesh adds complexity, resources and latency. You may not need one. Need virtual machines in the mesh, EnvoyFilter, or one set of keys per workload? Sidecar mode. Do cost, latency and restart-free upgrades matter most? Ambient mode, with waypoints only where you need layer seven. And it isn't all or nothing. Sidecar and ambient Pods can live in one mesh.

What changed since 2022

Read a comparison from 2022? Plenty has moved since. Ambient was announced in September 2022, production-ready for one cluster in Istio 1.22, and stable in Istio 1.24, in November 2024. Istio's reasons: what sidecars cost in resources, sidecars breaking apps, and restarting Pods for every upgrade. Savings can exceed ninety percent in some cases. Sidecar mode moved on too, with native sidecars by default from Istio 1.27. Multicluster ambient across networks went beta in Istio 1.29. The newest release, 1.32, supports Kubernetes 1.33 to 1.37.

For the CKAD and CKA

Studying for the CKAD, the Certified Kubernetes Application Developer? Or the CKA, the Certified Kubernetes Administrator? Istio isn't on either curriculum. What the mesh relies on is tested. The CKAD covers multi-container Pod patterns, native sidecars included. The CKA covers troubleshooting Pods stuck in init. Spot an injected sidecar by ready two of two, and an extra container in kubectl describe pod. A native one is listed with the init containers. And read its logs with dash c on kubectl logs.

Recap

Recap. Sidecar mode puts an Envoy in every Pod. Ambient moves the proxy to a ztunnel per node, with waypoints for layer seven. Virtual machines, EnvoyFilter or keys per workload? Sidecar. Cost, latency and no restarts? Ambient. And both can live in one mesh.

Practice and what's next

The full comparison, with the YAML for both modes, is on gazeek.com. The link is in the description. To watch a sidecar start before the app, try the Pods and multi-container patterns module in our CKAD course. Every diagram here opens in archhy, from the description too. That's Head to Head. Two modes went in. You picked the winner. See you next time.

Gazeek Flash · free

Exam questions on your phone

Free questions on Application Design and Build: quick-fire batches and timed exams, on the web or Android.