Istio Ambient Mesh: Sidecar-Free Service Mesh Migration Guide

On this page
- Architecture Overview
- Installation and Prerequisites
- Enabling Ambient Mode for Workloads
- Waypoint Proxy Configuration
- Security Policy Enforcement
- Migrating from Sidecar Mode
- Observability in Ambient Mode
- eBPF Traffic Interception Deep Dive
- Production Rollout Strategies
- Performance Comparison: Sidecar vs Ambient
- Troubleshooting Common Issues
- Advanced Configuration
- Production Monitoring Dashboard
- Summary
Istio ambient mesh eliminates the per-pod sidecar proxy model that has defined service mesh architectures for years. Instead of injecting an Envoy sidecar into every pod, ambient mesh uses a node-level ztunnel daemon for Layer 4 transport security and optional per-namespace waypoint proxies for Layer 7 policy. This separation dramatically reduces resource overhead and simplifies operations without sacrificing security or observability.
This guide covers the complete architecture of ambient mesh, the migration path from sidecar-based installations, traffic interception mechanisms, policy enforcement, and production rollout strategies for enterprise environments.
Architecture Overview
Ambient mesh introduces a layered architecture that differs fundamentally from the sidecar model. Understanding this architecture is essential before attempting any migration.
The Two-Layer Model
Ambient mesh separates concerns across two distinct layers:
Layer 4 (ztunnel): The ztunnel (zero-trust tunnel) is a Rust-based lightweight proxy deployed as a DaemonSet on every node. It handles:
- Mutual TLS (mTLS) for all pod-to-pod traffic
- SPIFFE/SPIRE-based workload identity
- L4 authorization policy enforcement
- Traffic observability at the transport layer
Layer 7 (Waypoint Proxy): Waypoint proxies are Envoy-based proxies deployed on demand per namespace or service account. They handle:
- HTTP/gRPC traffic management
- L7 authorization policies
- Request-level observability and telemetry
- Traffic shaping (retries, timeouts, circuit breaking)
┌─────────────────────────────────────────────────────────────┐
│ Pod A (no sidecar) │
│ ┌─────────────┐ │
│ │ Application │ ──── plain TCP ──► ztunnel (node DaemonSet)│
│ └─────────────┘ │ │
└────────────────────────────────────────────│───────────────┘
│ HBONE tunnel
┌────────────────────────────────────────────│───────────────┐
│ Target Node │ │
│ ztunnel ◄── HBONE ────────────────────────┘ │
│ │ │
│ │ (if L7 policy needed) │
│ ▼ │
│ Waypoint Proxy ──► Pod B (no sidecar) │
└─────────────────────────────────────────────────────────────┘HBONE: The Transport Protocol
Ambient mesh uses HBONE (HTTP-Based Overlay Network Environment) as its tunneling protocol. HBONE wraps pod-to-pod traffic in HTTP/2 CONNECT tunnels with mTLS, enabling:
- End-to-end encryption without touching pod network namespaces
- Transparent proxying without iptables manipulation inside pods
- Metadata propagation for policy decisions
Installation and Prerequisites
Cluster Requirements
Ambient mesh requires Kubernetes 1.24+ and specific kernel versions for eBPF functionality:
# Verify kernel version (5.8+ required for BPF redirection)
kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.nodeInfo.kernelVersion}{"\n"}{end}'
# Check for required kernel modules
kubectl debug node/worker-01 -it --image=ubuntu:22.04 -- \
bash -c "grep -E 'BPF|CGROUP|NET_CLS' /boot/config-$(uname -r) | head -20"Installing Istio with Ambient Mode
# Download Istio 1.22+ which has stable ambient support
curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.23.0 sh -
export PATH=$PWD/istio-1.23.0/bin:$PATH
# Install with ambient profile
istioctl install --set profile=ambient --set meshConfig.accessLogFile=/dev/stdout
# Verify installation
kubectl get pods -n istio-systemExpected output:
NAME READY STATUS RESTARTS
istio-cni-node-4x7kp 1/1 Running 0
istio-cni-node-7m2nq 1/1 Running 0
istiod-6d9bbf9c4b-k8r2t 1/1 Running 0
ztunnel-6c9kd 1/1 Running 0
ztunnel-9h2ms 1/1 Running 0
ztunnel-n4xtq 1/1 Running 0Ambient Profile Components
The ambient profile installs:
istiod: Control plane for certificate issuance, config distributionistio-cni: CNI plugin for traffic redirection (replaces init containers)ztunnel: Per-node L4 proxy DaemonSet
# Verify the ambient profile components
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
name: ambient-install
namespace: istio-system
spec:
profile: ambient
meshConfig:
accessLogFile: /dev/stdout
defaultConfig:
proxyMetadata:
ISTIO_META_ENABLE_HBONE: "true"
components:
ingressGateways:
- name: istio-ingressgateway
enabled: true
cni:
enabled: true
ztunnel:
enabled: true
values:
cni:
ambient:
enabled: true
ztunnel:
resources:
requests:
cpu: 200m
memory: 128Mi
limits:
cpu: 1000m
memory: 512MiEnabling Ambient Mode for Workloads
Namespace-Level Enrollment
The primary enrollment mechanism is a namespace label:
# Enroll a namespace in ambient mesh
kubectl label namespace production istio.io/dataplane-mode=ambient
# Verify enrollment
kubectl get namespace production --show-labelsEnrolling a namespace triggers the CNI plugin to configure traffic redirection for all pods in that namespace without requiring pod restarts.
apiVersion: v1
kind: Namespace
metadata:
name: production
labels:
istio.io/dataplane-mode: ambient
istio-injection: disabled # Ensure sidecar injection is disabledSelective Pod Enrollment
For gradual rollouts, individual pods can be opted out:
apiVersion: apps/v1
kind: Deployment
metadata:
name: legacy-service
namespace: production
spec:
template:
metadata:
annotations:
ambient.istio.io/redirection: disabled
spec:
containers:
- name: app
image: registry.company.com/legacy-service:2.1.0Verifying Traffic Interception
# Check ztunnel is intercepting traffic
kubectl exec -n istio-system ds/ztunnel -- \
curl -s localhost:15000/config_dump | python3 -c "
import json, sys
config = json.load(sys.stdin)
listeners = [c for c in config['configs'] if c.get('@type', '').endswith('ListenersConfigDump')]
print(f'Active listeners: {len(listeners[0][\"dynamic_listeners\"])}')
"
# Verify mTLS is active between pods
kubectl exec -n production deploy/frontend -- \
curl -sv http://backend:8080/health 2>&1 | grep -E "SSL|TLS|certificate"
# Check ztunnel logs for connection establishment
kubectl logs -n istio-system ds/ztunnel --tail=50 | grep -E "HBONE|connect|tunnel"Waypoint Proxy Configuration
Waypoint proxies provide L7 capabilities on demand. Without a waypoint, the mesh operates purely at L4.
Deploying a Waypoint Proxy
# Deploy waypoint for a namespace
istioctl waypoint apply --namespace production
# Deploy waypoint for a specific service account
istioctl waypoint apply --namespace production --name payments-waypoint \
--for service-account payments-sa
# Verify waypoint deployment
kubectl get gateway -n production
kubectl get pods -n production -l gateway.istio.io/managed=istio.io-mesh-controllerWaypoint Gateway Configuration
Waypoints are managed via the Kubernetes Gateway API:
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: production-waypoint
namespace: production
annotations:
istio.io/service-account: production-sa
spec:
gatewayClassName: istio-waypoint
listeners:
- name: mesh
port: 15008
protocol: HBONETargeting Services to Use Waypoints
apiVersion: v1
kind: Service
metadata:
name: payments
namespace: production
labels:
istio.io/use-waypoint: production-waypoint
spec:
selector:
app: payments
ports:
- name: http
port: 8080
targetPort: 8080L7 Traffic Management with Waypoints
Once a waypoint is deployed, you can apply HTTPRoute resources:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: payments-routing
namespace: production
spec:
parentRefs:
- group: ""
kind: Service
name: payments
port: 8080
rules:
- matches:
- headers:
- name: x-version
value: "v2"
backendRefs:
- name: payments-v2
port: 8080
weight: 100
- backendRefs:
- name: payments-v1
port: 8080
weight: 100Security Policy Enforcement
L4 Authorization with AuthorizationPolicy
Without waypoints, AuthorizationPolicy applies at L4:
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: payments-l4-policy
namespace: production
spec:
selector:
matchLabels:
app: payments
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/production/sa/frontend
- cluster.local/ns/production/sa/api-gateway
to:
- operation:
ports:
- "8080"L7 Authorization with Waypoints
With a waypoint deployed, you can enforce path-level policies:
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: payments-l7-policy
namespace: production
spec:
targetRef:
group: gateway.networking.k8s.io
kind: Gateway
name: production-waypoint
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/production/sa/frontend
to:
- operation:
methods:
- GET
paths:
- /payments/*
- from:
- source:
principals:
- cluster.local/ns/production/sa/billing-worker
to:
- operation:
methods:
- POST
paths:
- /payments/processPeerAuthentication for mTLS
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
name: default
namespace: production
spec:
mtls:
mode: STRICTMigrating from Sidecar Mode
Migration Strategy Overview
The migration from sidecar to ambient should be phased to minimize risk:
- Install ambient components alongside existing Istio
- Identify low-risk namespaces for initial migration
- Migrate namespaces incrementally
- Deploy waypoints only where L7 is needed
- Decommission sidecar proxies after validation
Phase 1: Prepare the Environment
# Audit current sidecar resource consumption
kubectl top pods -A --sort-by=memory | grep istio-proxy | \
awk '{sum += $4} END {print "Total sidecar memory: " sum "Mi"}'
# List all namespaces with sidecar injection enabled
kubectl get namespaces --show-labels | grep istio-injection=enabled
# Generate a migration plan report
istioctl analyze --all-namespaces 2>&1 | grep -E "Warning|Error"Phase 2: Upgrade Istio for Ambient Compatibility
# Upgrade to Istio 1.23 while keeping sidecars active
istioctl upgrade --set profile=default
# Add ambient components without removing sidecar support
istioctl install --set profile=ambient \
--set values.pilot.env.PILOT_ENABLE_AMBIENT=true \
--skip-confirmation
# Verify both modes are available
kubectl get pods -n istio-systemPhase 3: Namespace Migration Script
#!/bin/bash
# migrate-namespace-to-ambient.sh
NAMESPACE=$1
DRY_RUN=${2:-false}
if [ -z "$NAMESPACE" ]; then
echo "Usage: $0 <namespace> [dry-run]"
exit 1
fi
echo "Starting migration of namespace: $NAMESPACE"
# Step 1: Check current state
echo "Current namespace labels:"
kubectl get namespace $NAMESPACE --show-labels
echo "Pods with sidecars:"
kubectl get pods -n $NAMESPACE -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{range .spec.containers[*]}{.name}{","}{end}{"\n"}{end}' | grep istio-proxy
# Step 2: Enable ambient mode
if [ "$DRY_RUN" != "true" ]; then
# Disable sidecar injection
kubectl label namespace $NAMESPACE istio-injection=disabled --overwrite
# Enable ambient mode
kubectl label namespace $NAMESPACE istio.io/dataplane-mode=ambient --overwrite
echo "Namespace labels updated. Pods need restart to remove sidecars."
# Rolling restart to remove sidecars
for deploy in $(kubectl get deployments -n $NAMESPACE -o name); do
echo "Restarting $deploy"
kubectl rollout restart $deploy -n $NAMESPACE
kubectl rollout status $deploy -n $NAMESPACE --timeout=120s
done
echo "Migration complete for namespace: $NAMESPACE"
else
echo "DRY RUN: Would label namespace $NAMESPACE for ambient mode"
echo "DRY RUN: Would restart all deployments in $NAMESPACE"
fiPhase 4: Validate Migration
# Verify no sidecar containers in pods
kubectl get pods -n $NAMESPACE -o json | python3 -c "
import json, sys
data = json.load(sys.stdin)
for pod in data['items']:
containers = [c['name'] for c in pod['spec']['containers']]
if 'istio-proxy' in containers:
print(f'WARN: {pod[\"metadata\"][\"name\"]} still has sidecar')
else:
print(f'OK: {pod[\"metadata\"][\"name\"]} has no sidecar')
"
# Test mTLS is still enforced
kubectl exec -n $NAMESPACE deploy/frontend -- \
curl -sv http://backend:8080/health
# Check ztunnel captured the connection
kubectl logs -n istio-system ds/ztunnel | grep $NAMESPACE | tail -20Observability in Ambient Mode
Metrics Collection
Ambient mesh exposes metrics through ztunnel and waypoint proxies:
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config
namespace: monitoring
data:
prometheus.yml: |
scrape_configs:
- job_name: 'ztunnel'
kubernetes_sd_configs:
- role: pod
namespaces:
names:
- istio-system
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: ztunnel
- source_labels: [__meta_kubernetes_pod_ip]
replacement: '${1}:15020'
target_label: __address__
- job_name: 'waypoint-proxies'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_gateway_istio_io_managed]
action: keep
regex: 'istio.io-mesh-controller'
- source_labels: [__meta_kubernetes_pod_ip]
replacement: '${1}:15020'
target_label: __address__Key Metrics to Monitor
# L4 connection rate through ztunnel
rate(istio_tcp_connections_opened_total[5m])
# L7 request rate through waypoints
rate(istio_requests_total[5m])
# mTLS handshake failures
increase(istio_tcp_connections_closed_total{security_policy="mutual_tls", response_flags="UF"}[5m])
# Waypoint proxy latency
histogram_quantile(0.99, rate(istio_request_duration_milliseconds_bucket[5m]))
# HBONE tunnel errors
increase(ztunnel_inbound_failures_total[5m])Distributed Tracing with Ambient
apiVersion: telemetry.istio.io/v1
kind: Telemetry
metadata:
name: production-tracing
namespace: production
spec:
tracing:
- providers:
- name: tempo
randomSamplingPercentage: 10
customTags:
cluster:
literal:
value: prod-us-east-1
namespace:
environment:
name: NAMESPACE
defaultValue: unknownConfigure the tracing provider:
apiVersion: v1
kind: ConfigMap
metadata:
name: istio-config
namespace: istio-system
data:
mesh: |
defaultConfig:
tracing:
zipkin:
address: tempo-distributor.monitoring.svc.cluster.local:9411
extensionProviders:
- name: tempo
zipkin:
service: tempo-distributor.monitoring.svc.cluster.local
port: 9411Access Logging
apiVersion: telemetry.istio.io/v1
kind: Telemetry
metadata:
name: access-logging
namespace: production
spec:
accessLogging:
- providers:
- name: envoy
- match:
mode: CLIENT_AND_SERVEReBPF Traffic Interception Deep Dive
How CNI Plugin Redirects Traffic
The Istio CNI ambient plugin uses eBPF programs attached to network interfaces to redirect traffic to ztunnel. This differs from the sidecar model which used iptables rules inside pod network namespaces.
# Inspect CNI plugin eBPF programs
kubectl debug node/worker-01 -it --image=cilium/cilium-dbg:v1.14.0 -- \
bash -c "bpftool prog list | grep -E 'istio|ambient'"
# View traffic redirection rules
kubectl exec -n istio-system ds/istio-cni -- \
iptables -t mangle -L ISTIO_DIVERT -n 2>/dev/null || \
echo "Using eBPF redirection (no iptables)"ztunnel Traffic Path
Understanding the exact traffic path helps with troubleshooting:
Application Pod (no sidecar)
│
│ TCP to port 8080
▼
eBPF hook on eth0 (redirects to ztunnel)
│
▼
ztunnel listener (127.0.0.1:15001)
│
│ HBONE CONNECT tunnel with mTLS
▼
Target Node ztunnel (inbound, port 15008)
│
│ (if waypoint exists, forward to waypoint)
▼
Target Pod (plain TCP delivery)Debugging eBPF Redirection
# Monitor ztunnel with debug logging
kubectl edit configmap istio-ztunnel-config -n istio-system
# Set: RUST_LOG: info,ztunnel=debug
# Restart ztunnel to apply
kubectl rollout restart daemonset/ztunnel -n istio-system
# Watch connection establishment
kubectl logs -n istio-system ds/ztunnel -f | grep -E "accept|connect|error" | head -50Production Rollout Strategies
Canary Migration Approach
#!/bin/bash
# canary-ambient-migration.sh
# Migrates one deployment at a time using labels
NAMESPACE=$1
DEPLOYMENT=$2
echo "Starting canary ambient migration for $DEPLOYMENT in $NAMESPACE"
# Step 1: Add ambient annotation to new pods only
kubectl patch deployment/$DEPLOYMENT -n $NAMESPACE \
--patch '{"spec":{"template":{"metadata":{"annotations":{"ambient.istio.io/redirection":"enabled"}}}}}'
# Step 2: Disable sidecar injection for this deployment
kubectl patch deployment/$DEPLOYMENT -n $NAMESPACE \
--patch '{"spec":{"template":{"metadata":{"annotations":{"sidecar.istio.io/inject":"false"}}}}}'
# Step 3: Rolling restart
kubectl rollout restart deployment/$DEPLOYMENT -n $NAMESPACE
kubectl rollout status deployment/$DEPLOYMENT -n $NAMESPACE --timeout=300s
echo "Deployment $DEPLOYMENT migrated. Monitor for 10 minutes before proceeding."Blue-Green Namespace Migration
For large production systems, a blue-green namespace approach reduces risk:
# Create new namespace with ambient mode
kubectl create namespace production-ambient
kubectl label namespace production-ambient istio.io/dataplane-mode=ambient
# Copy all resources
kubectl get all -n production -o yaml | \
sed 's/namespace: production/namespace: production-ambient/g' | \
kubectl apply -f -
# Update DNS/service discovery to point to new namespace
# Use ExternalName services for gradual traffic shift
# After validation, decommission old namespaceTraffic Verification Checklist
#!/bin/bash
# verify-ambient-migration.sh
NAMESPACE=$1
echo "=== Ambient Migration Verification Report ==="
echo "Namespace: $NAMESPACE"
echo "Date: $(date)"
echo ""
echo "--- Namespace Labels ---"
kubectl get namespace $NAMESPACE --show-labels
echo ""
echo "--- Pods Without Sidecars ---"
kubectl get pods -n $NAMESPACE -o json | python3 -c "
import json, sys
data = json.load(sys.stdin)
total = len(data['items'])
no_sidecar = sum(1 for p in data['items']
if not any(c['name'] == 'istio-proxy'
for c in p['spec']['containers']))
print(f'Pods without sidecar: {no_sidecar}/{total}')
"
echo ""
echo "--- ztunnel Captured Connections (last 5 min) ---"
kubectl logs -n istio-system ds/ztunnel --since=5m 2>/dev/null | \
grep "src_ns=$NAMESPACE" | wc -l
echo ""
echo "--- mTLS Verification ---"
kubectl exec -n $NAMESPACE \
$(kubectl get pods -n $NAMESPACE -o name | head -1) -- \
curl -sv http://$(kubectl get svc -n $NAMESPACE -o name | head -1 | cut -d/ -f2):8080/ \
2>&1 | grep -E "SSL|certificate|TLS" || echo "Could not verify (check pod access)"
echo ""
echo "--- AuthorizationPolicy Status ---"
kubectl get authorizationpolicies -n $NAMESPACE
echo ""
echo "--- Waypoint Proxies ---"
kubectl get gateway -n $NAMESPACE
kubectl get pods -n $NAMESPACE -l gateway.istio.io/managed=istio.io-mesh-controllerPerformance Comparison: Sidecar vs Ambient
Resource Usage Reduction
Ambient mesh typically reduces resource consumption significantly for large deployments:
# Example: Measuring resource savings
# Sidecar model: each pod gets ~150m CPU / 128Mi memory for proxy
# Ambient model: ztunnel shared per node, typically 200m CPU / 128Mi per node
# For a cluster with:
# - 100 pods across 10 nodes
# - Sidecar: 100 x 150m CPU = 15,000m = 15 CPU cores for proxies
# - Ambient: 10 x 200m CPU = 2,000m = 2 CPU cores for ztunnel
# Net savings: ~87% CPU reduction for proxy infrastructureLatency Impact
# Benchmark test: sidecar vs ambient
# Using fortio for HTTP benchmarking
# Test with sidecars (baseline)
kubectl run fortio-test --image=fortio/fortio --rm -it -- \
load -qps 1000 -t 60s -c 10 http://payments.production.svc:8080/
# After migration to ambient
kubectl run fortio-test --image=fortio/fortio --rm -it -- \
load -qps 1000 -t 60s -c 10 http://payments.production.svc:8080/Expected results typically show:
- P50 latency: Similar or slightly lower with ambient
- P99 latency: Lower with ambient (no sidecar proxy contention)
- Throughput: 5-15% improvement with ambient
Troubleshooting Common Issues
Issue 1: Traffic Not Being Intercepted
# Check CNI plugin is running
kubectl get pods -n istio-system -l k8s-app=istio-cni-node
# Verify CNI configuration
kubectl exec -n istio-system ds/istio-cni-node -- \
cat /etc/cni/net.d/10-istio-cni.conflist
# Check namespace label
kubectl get namespace production -o jsonpath='{.metadata.labels}'
# Inspect ztunnel for the node
kubectl logs -n istio-system \
$(kubectl get pod -n istio-system -l app=ztunnel \
--field-selector spec.nodeName=$(kubectl get pod -n production deploy/frontend \
-o jsonpath='{.spec.nodeName}') -o name) \
--tail=100Issue 2: AuthorizationPolicy Not Enforcing
# Verify policy targets are correct for ambient mode
kubectl get authorizationpolicies -n production -o yaml
# Check if waypoint is required for L7 policy
# L7 policies (path, method, header matching) require waypoints
istioctl analyze -n production
# Verify SPIFFE identity in certificates
kubectl exec -n production deploy/frontend -- \
openssl s_client -connect backend.production.svc:8080 \
-showcerts 2>/dev/null | openssl x509 -noout -text | grep -A2 "Subject Alternative"Issue 3: Waypoint Proxy Crashing
# Check waypoint proxy logs
kubectl logs -n production \
-l gateway.istio.io/managed=istio.io-mesh-controller --tail=100
# Verify Gateway resource configuration
kubectl get gateway -n production -o yaml
# Check for certificate issues
kubectl describe certificate -n production
# Restart waypoint
kubectl delete pods -n production \
-l gateway.istio.io/managed=istio.io-mesh-controllerIssue 4: Increased Latency After Migration
# Check ztunnel resource utilization
kubectl top pods -n istio-system -l app=ztunnel
# Verify HBONE connection pooling is working
kubectl exec -n istio-system ds/ztunnel -- \
curl -s localhost:15000/stats | grep -E "upstream_cx|downstream_cx"
# Look for connection limits being hit
kubectl logs -n istio-system ds/ztunnel | grep -E "pool|limit|queue"
# Consider tuning ztunnel resources
kubectl patch daemonset/ztunnel -n istio-system \
--patch '{"spec":{"template":{"spec":{"containers":[{
"name":"ztunnel",
"resources":{
"requests":{"cpu":"500m","memory":"256Mi"},
"limits":{"cpu":"2000m","memory":"1Gi"}
}
}]}}}}'Advanced Configuration
Custom DNS-Based Traffic Routing
apiVersion: networking.istio.io/v1
kind: ServiceEntry
metadata:
name: external-payments-api
namespace: production
spec:
hosts:
- payments.external-provider.com
ports:
- number: 443
name: tls
protocol: TLS
location: MESH_EXTERNAL
resolution: DNS
---
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata:
name: external-payments-tls
namespace: production
spec:
host: payments.external-provider.com
trafficPolicy:
tls:
mode: SIMPLE
sni: payments.external-provider.comAmbient Mesh with Multi-Cluster
# Primary cluster: east-us
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
name: ambient-primary
namespace: istio-system
spec:
profile: ambient
meshConfig:
defaultConfig:
proxyMetadata:
ISTIO_META_CLUSTER_ID: east-us
values:
global:
meshID: prod-mesh
multiCluster:
clusterName: east-us
network: east-us-network# Remote cluster: west-us
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
name: ambient-remote
namespace: istio-system
spec:
profile: remote
values:
global:
meshID: prod-mesh
multiCluster:
clusterName: west-us
network: west-us-network
remotePilotAddress: istiod.east-us.company.internalIntegration with Kubernetes Gateway API
Ambient mesh uses the Kubernetes Gateway API natively:
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: ingress-gateway
namespace: production
spec:
gatewayClassName: istio
listeners:
- name: https
hostname: api.company.com
port: 443
protocol: HTTPS
tls:
mode: Terminate
certificateRefs:
- name: api-tls-cert
kind: Secret
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: api-route
namespace: production
spec:
parentRefs:
- name: ingress-gateway
hostnames:
- api.company.com
rules:
- matches:
- path:
type: PathPrefix
value: /v1/payments
backendRefs:
- name: payments
port: 8080Production Monitoring Dashboard
Grafana Dashboard Configuration
{
"title": "Istio Ambient Mesh Overview",
"panels": [
{
"title": "ztunnel Connection Rate",
"type": "graph",
"targets": [
{
"expr": "sum(rate(istio_tcp_connections_opened_total[5m])) by (destination_service_namespace)",
"legendFormat": "{{destination_service_namespace}}"
}
]
},
{
"title": "Waypoint Request Rate",
"type": "graph",
"targets": [
{
"expr": "sum(rate(istio_requests_total{reporter=\"destination\"}[5m])) by (destination_service_name)",
"legendFormat": "{{destination_service_name}}"
}
]
},
{
"title": "mTLS Policy Denials",
"type": "stat",
"targets": [
{
"expr": "sum(increase(istio_requests_total{response_code=\"403\"}[5m]))"
}
]
},
{
"title": "ztunnel CPU per Node",
"type": "graph",
"targets": [
{
"expr": "sum(rate(container_cpu_usage_seconds_total{container=\"ztunnel\"}[5m])) by (node)",
"legendFormat": "{{node}}"
}
]
}
]
}Summary
Istio ambient mesh represents a significant architectural shift that eliminates the operational complexity and resource overhead of sidecar proxies. The key takeaways for production migration are:
Architecture: ztunnel handles L4 mTLS transparently across all enrolled pods, while waypoint proxies provide on-demand L7 capabilities only where needed.
Migration path: Use namespace-level enrollment with istio.io/dataplane-mode=ambient, migrate gradually, and only deploy waypoints where L7 policy or advanced routing is required.
Resource efficiency: Expect 70-90% reduction in proxy-related CPU and memory consumption for large deployments.
Observability: ztunnel and waypoint proxies export standard Prometheus metrics and support distributed tracing without sidecar overhead.
Production readiness: As of Istio 1.22+, ambient mode is production-ready for most workloads. Monitor the Istio release notes for feature parity updates with the sidecar model.
The migration from sidecar to ambient is reversible at the namespace level, making it safe to experiment incrementally. Start with development namespaces, validate security policies with istioctl analyze, and use the verification scripts provided to confirm correct behavior before migrating production workloads.