Skip to main content
Networking & service meshLesson 10 of 11

Service Mesh ④ Ambient Mode Without Sidecars

Ambient mode moves the mesh proxy out of the Pod. A per-node ztunnel handles mTLS and identity at L4, and an optional waypoint proxy adds L7 features only where you ask for them. Watch what works with ztunnel alone, and what silently does not.

Pathweb → api
mTLSNone
L4 policy—
L7 rules—
Node 1Node 2istiodConfig and certificatesPod webns shopztunnelDaemonSet · node 1ztunnelDaemonSet · node 2Pod apins shopHTTPRouteretries · header matchWaypointEnvoy · L7 · ns shopAuthorizationPolicyWho may call apiPlain TCP
RequestWatchAppears in a later step

What you will learn

  • Joining the mesh with a namespace label, no sidecar and no restart
  • What ztunnel does per node, and what it does not
  • How HBONE tunnels traffic over mTLS on port 15008
  • Why L7 rules are ignored, or deny everything, without a waypoint
  • Adding a waypoint and attaching L7 routes and policies to it

What runs where​

FeatureSidecar modeAmbient, ztunnel onlyAmbient with a waypoint
Join the meshInjection label, then restart the Podsistio.io/dataplane-mode=ambient, no restartSame, plus istio.io/use-waypoint
mTLS and workload identitySidecarztunnel (HBONE, port 15008)ztunnel
AuthorizationPolicy on principals, namespaces, portsSidecarztunnelztunnel or waypoint
AuthorizationPolicy on methods, paths, headersSidecarNot enforced: ALLOW denies all, DENY blocks nothingWaypoint, attached with targetRefs
HTTPRoute, retries, timeouts, header routingSidecarIgnoredWaypoint
VirtualServiceSidecarIgnoredWaypoint (Alpha)
MetricsL4 and L7L4 (TCP) onlyL4 and L7
Proxy countOne per PodOne per nodeOne per node, plus waypoints

Try it yourself​

kubectl label namespace shop istio.io/dataplane-mode=ambient # Add the namespace to the mesh
kubectl get pods -n shop # Still READY 1/1, no restarts
kubectl get daemonset ztunnel -n istio-system # One ztunnel per node
istioctl ztunnel-config workloads # PROTOCOL HBONE for meshed Pods
kubectl logs -n istio-system -l app=ztunnel | grep -E "inbound|outbound" # Connections and identities
istioctl waypoint apply -n shop --enroll-namespace # Create a waypoint and label the namespace
kubectl get gateways.gateway.networking.k8s.io -n shop # waypoint, class istio-waypoint, PROGRAMMED
kubectl get namespace shop -L istio.io/dataplane-mode,istio.io/use-waypoint # Which labels are on
kubectl get authorizationpolicy -n shop -o yaml # selector (ztunnel) or targetRefs (waypoint)?

Check yourself

  1. You label a namespace istio.io/dataplane-mode=ambient. What happens to its running Pods?
  2. An HTTPRoute with retries for Service api exists, but retries never happen. No waypoint is deployed. Why?
  3. Without a waypoint, an ALLOW AuthorizationPolicy says: from web, methods GET. What is the result?

Further reading: Ambient mode overview · HBONE · Configure waypoint proxies · L4 authorization policy in ambient · Ambient GA announcement · Service Mesh ① Sidecars and Mutual Authentication · Service Mesh ② Splitting Traffic · How a Gateway API HTTPRoute Reaches a Pod