# Istio ambient mode or sidecars?

> Ambient mode swaps the per-Pod Envoy for a ztunnel on each node and an optional waypoint for HTTP. Where your layer 7 rules now run, what breaks on day one, and which workloads should keep sidecars.

- Canonical: https://www.alpacamango.com/docs/istio-ambient-vs-sidecar
- Author: Captain Spitt McGee
- Published: 2026-11-23 · Updated: 2026-11-20
- Topics: Kubernetes, Architecture

**For a new Istio mesh on a single Kubernetes cluster, choose ambient mode; keep sidecars where you need per-workload keys, virtual machines, EnvoyFilter, or a multicluster mesh you cannot run on a beta feature.** Ambient takes the Envoy proxy out of every Pod. A shared ztunnel on each node handles mutual TLS and layer 4 policy, and an Envoy waypoint, added only where you ask for one, handles HTTP. The decision is less about cost than about where your layer 7 rules now run.

## What goes, and what arrives

With sidecars, every Pod carries its own Envoy, sized for that Pod's worst moment, injected at start-up and upgraded by restarting the workload. Ambient replaces that with two pieces:

- **ztunnel**, a small Rust proxy on each node. It encrypts and authenticates traffic between workloads, applies layer 4 authorization and reports layer 4 telemetry. It never parses HTTP. Traffic between Pods travels inside an HTTP CONNECT tunnel Istio calls HBONE, on port 15008.
- **A waypoint**, an ordinary Envoy Deployment that Istio creates from a Gateway API `Gateway`. Typically one per namespace. It does the HTTP work: retries, timeouts, traffic splits, mirroring, request-level authorization and metrics. It scales and upgrades on its own, without touching your applications.

Joining the mesh is a label, and nothing restarts:

```bash
kubectl label namespace shop istio.io/dataplane-mode=ambient
istioctl waypoint apply -n shop --enroll-namespace
```

The first line gives every Pod in `shop` mutual TLS. The second adds a waypoint and points the namespace at it; leave it out until something actually needs HTTP features. A Pod that already has a sidecar keeps it: sidecar mode wins when both are configured, so you can move one namespace at a time.

## Where layer 7 runs now

This is the change that catches people. A sidecar applies HTTP rules on both sides of a call, so in the [Istio blue/green article](/docs/kubernetes-blue-green-with-istio) every caller's proxy reads the VirtualService and picks blue or green. In ambient, HTTP rules run once, at the waypoint in front of the destination. If the destination has no waypoint, or the waypoint is not set up for that kind of traffic, ztunnel delivers the request directly and your routing rules never run. Nothing errors; the split just does not happen.

Two habits follow. Write new routing as an `HTTPRoute` attached to the Service, the same shape as the [Gateway API blue/green route](/docs/kubernetes-blue-green-with-gateway-api): on waypoints, HTTPRoute is beta while VirtualService is still alpha, and mixing the two is unsupported. And if a policy depends on the waypoint, add a layer 4 AuthorizationPolicy on the destination that only admits the waypoint's service account, so ztunnel refuses anything that tries to go round it.

## What breaks on the first day

Kubernetes network policies. Ambient never bypasses them, which is good, but it changes what they see. Traffic between meshed Pods arrives on port 15008, not your application's port, so a policy that admits only 8080 blocks it. And kubelet probes are rewritten to come from a link-local address, so under a default-deny ingress policy, depending on your CNI, Pods can start failing their health checks the moment the namespace is labelled. Both need an allow:

```yaml
ingress:
- ports:
  - port: 15008
    protocol: TCP
- from:
  - ipBlock:
      cidr: 169.254.7.127/32
```

The first rule admits HBONE from any peer, so let mesh authorization decide who gets through it. Dual-stack and IPv6 clusters need the IPv6 probe address too. The [network policies article](/docs/kubernetes-network-policies) explains why probes normally get through without help.

## Which workloads choose which

- **Ambient:** new meshes, namespaces that want encryption and identity before anything else, Jobs (a sidecar that never exits keeps a Job alive; ztunnel is not in the Pod) and large fleets where proxies sized per Pod add up. Istio's own comparison puts ztunnel's added latency at about a quarter of a sidecar pair's, and a path through a waypoint at a little over half.
- **Sidecars:** workloads on virtual machines, anything that relies on EnvoyFilter, and meshes spanning clusters if multicluster ambient, still beta, is a step too far for you.
- **Weigh the security model honestly.** A sidecar holds keys only for its own workload. ztunnel holds keys for every workload on its node, so the blast radius moves from one Pod to one node; in exchange, a compromised application container no longer holds any mesh keys at all.

## The diagram

The two modes side by side: on the left, sidecar Pods each carrying an Envoy; on the right, plain Pods with one ztunnel per node, tunnelling to a namespace waypoint that applies the HTTP rules. [Open it in archhy](https://archhy.com/d/e6IuMzkljgqd?utm_source=alpacamango) and press Make a copy to sketch your own mesh.
