Kubernetes · Enterprise

Sidecar-less Multi-Cluster Service Mesh: Istio Ambient with Vault PKI

Istio Ambient across private clusters in a multi-primary, multi-network topology: ztunnel gives automatic mTLS, east-west gateways give cross-cluster discovery and failover, and a Vault-backed CA is the single root of trust.

  • Istio Ambient
  • ztunnel
  • Vault PKI
  • cert-manager
  • istio-csr
  • Gateway API
  • Helm
  • Kiali
  • Prometheus

// Why this matters

If you want istio ambient multicluster working across private clusters, you are usually solving two problems at once: you want encryption and identity between services without touching application teams, and you want those services to keep working when one cluster is unavailable. Sidecars solve the first at a real cost in rollout friction. Every namespace needs injection, every workload restarts to pick up proxy upgrades, and every pod carries a proxy whose memory request is multiplied by the size of the fleet.

Ambient mode changes the cost model. The L4 secure overlay is a node-level component, so enrolling a namespace is a label and a rolling restart is not required. Teams that need HTTP routing, retries or authorisation on request attributes can add a waypoint proxy for just that namespace or service. For a platform team serving many tenants, that means the mesh can be turned on as a platform capability instead of negotiated team by team.

The multi-cluster part matters just as much. Regional or environment-level clusters fail independently, and a platform that advertises high availability needs a way for service A in one cluster to find service B in the other without a hand-maintained DNS record. The design below keeps control planes independent and trust centralised, which is the combination that tends to survive real incidents.

// The problem

Plain Kubernetes networking gives you flat east-west traffic that is neither encrypted nor identity-aware. NetworkPolicy helps with reachability but says nothing about who the caller is. Across clusters it is worse: pod CIDRs overlap or are not routable, so you end up with ad-hoc ingress hops and per-service DNS names that drift.

Multi-cluster meshes introduce their own failure modes. If both clusters share one control plane, that control plane is a single point of failure. If each cluster generates its own self-signed root, services in cluster A cannot verify certificates from cluster B. If you hand the mesh a full kubeconfig for the peer cluster, you have turned service discovery into a lateral-movement path. And if every service is auto-merged across clusters, a typo in a namespace can route production traffic to a test cluster.

Finally the clusters here are private: API servers are not reachable from the internet and the networks are not flat. Whatever we build has to work with only one narrow, explicitly exposed path between the networks.

// The solution

The topology is multi-primary, multi-network. Every cluster runs a full istiod and ztunnel and shares a mesh id, but each has a unique cluster name and its own network name. Pods on different networks cannot reach each other directly, so each cluster exposes an east-west gateway whose listeners carry HBONE (the tunnel ztunnel speaks) on one port and xDS on another. istiod in cluster A watches cluster B through a remote secret, learns its endpoints and gateway address, and programs ztunnel to send cross-network traffic through that gateway.

For trust we do not let istiod mint a root. A Vault PKI mount holds a root offline and an intermediate for the mesh; cert-manager has a Vault issuer using Kubernetes auth, and istio-csr presents the Istio CA gRPC API and turns requests from istiod and ztunnel into cert-manager CertificateRequest objects. Both clusters point at the same intermediate (or sibling intermediates under one root), so SPIFFE identities issued in either cluster validate in the other. Rotating or revoking becomes a Vault action with a well understood audit trail.

Discovery is deliberately narrow. The remote secret is built from a dedicated service account that can only list and watch services, endpoints, pods, namespaces and the Gateway API resources istiod needs, with a token that is bounded rather than a long-lived admin credential. On top of that, a service is only merged across clusters when it carries the global scope label; local services stay local. Failover uses locality preference, so traffic stays in-cluster until endpoints become unhealthy.

Alternatives we rejected: a sidecar mesh with a single shared control plane (single failure domain, higher rollout cost), cloud-specific multi-cluster ingress (works for north-south but gives no identity between services), and self-signed per-cluster roots with manual trust bundle exchange (every rotation becomes a cross-team change). Observability rides along: Prometheus scrapes ztunnel and istiod, and Kiali reads from both so you can see a request cross the network boundary. Our Kubernetes-Native Self-Service Infrastructure with Crossplane and Who Deploys the Deployer? Terraform-Bootstrapped FluxCD posts show how the surrounding cluster lifecycle is delivered; this post is the mesh layer on top.

How it flows flow1. Root of trust → 2. cert-manager → 3. istio-csr → 4. Control plane → 5. Data plane → 6. East-west gateway → 7. Peering → 8. Gate: global label → 9. Failover01Root of trust02cert-manager03istio-csr04Control plane05Data plane06East-west gateway07Peering08 · GATEGate: global label09Failover
How it flows. End-to-end flow. Dashed pink nodes are gates: points where a human or a check must pass before the next stage runs.
  1. Root of trustVault PKI mount with an intermediate per mesh
  2. cert-managerVault issuer authenticated with Kubernetes auth
  3. istio-csrserves istiod and ztunnel certificate requests
  4. Control planeistiod per cluster, same mesh id, distinct cluster and network names
  5. Data planeztunnel DaemonSet plus the CNI node agent
  6. East-west gatewayHBONE and xDS exposed to the peer network
  7. Peeringbounded remote secret exchanged both directions
  8. Gate: global label gateonly labelled services are merged across clusters
  9. Failoverlocality-aware routing drains to the peer on local failure
Client pod Aztunnel AEast-west GW Bztunnel BServer pod Bplain TCP to service VIPno local healthy endpoint; HBONE tunnel, mTLS with workload certforward inside network Bplain TCP after identity check
Cross-cluster request in ambient mode. A client in cluster A calls a global service whose only healthy endpoints are in cluster B.
Root of trustVault PKI rootMesh intermediateAudit logCertificate brokeringcert-managerVault issueristio-csrControl planeistiod (per cluster)Remote secretsGateway APIData planeztunnel per nodeIstio CNIEast-west gatewayOptional waypoint
Trust and data-plane layers. Identity flows downward from Vault; traffic flows through the node layer.

// Before you start

  • Two or more Kubernetes clusters (1.28+) on distinct networks with a routable path between gateway load balancers (internal LBs plus private peering is fine).
  • Istio 1.24 or newer (ambient multicluster is supported from then on; check the release notes for your exact minor) and helm 3.12+.
  • A Vault instance with the PKI secrets engine and Kubernetes auth enabled, reachable from each cluster.
  • cert-manager 1.14+ installed in each cluster.
  • Gateway API CRDs installed in each cluster.
  • Cluster-admin on all clusters for the initial install, and a plan for which namespaces join the mesh first.

// Step-by-step implementation

  1. 01 Create the Vault PKI mount and a cert-manager issuer

    Start from trust, because everything else asks for certificates. Create a PKI mount for the mesh, sign its intermediate with your offline root, and give cert-manager a Vault role that can only sign for the mesh domain. Short TTLs (24 hours is the Istio default for workload certs) keep revocation largely theoretical.

    The issuer authenticates with the cert-manager service account through Vault Kubernetes auth, so no static token lives in the cluster.

  2. 02 Install istio-csr and point it at the issuer

    istio-csr replaces istiod's built-in CA. It listens on a gRPC endpoint that speaks the Istio certificate API, validates the caller's Kubernetes token, and asks cert-manager to sign. You must also disable istiod's own CA server later, otherwise you silently get two sources of identity.

    The root CA bundle (the public chain) is published into a ConfigMap so workloads can validate peers. Mirror it into every cluster.

  3. 03 Install the ambient control plane in each cluster

    Install the Gateway API CRDs, then the Istio charts in order: base, istiod, CNI, ztunnel. The values that make this multi-cluster are the same meshID everywhere, a unique clusterName, and a unique network. Get those wrong and endpoints from two clusters collide.

    Point caAddress at istio-csr and turn off the internal CA so istiod does not try to sign.

  4. 04 Expose an east-west gateway per network

    The gateway is the only door between networks, so it is defined once, declaratively, with the Gateway API. It carries two listeners: HBONE for workload traffic and TLS for xDS so the peer istiod can reach this cluster. Label the Gateway with its network name; istiod uses that label to learn where each network is reachable.

    Use an internal load balancer annotation appropriate to your cloud so the gateway is only reachable over your private peering.

  5. 05 Peer the clusters with a bounded remote secret

    Peering is two remote secrets, one in each direction. istioctl create-remote-secret is convenient but by default grants the reader role bound to istiod. Prefer to create a dedicated service account with just the discovery verbs, mint a time-boxed token for it, and assemble the kubeconfig yourself. Store the result in your secret manager and deliver it with External Secrets so it is rotated rather than pasted.

    The secret must carry the label istio/multiCluster=true; istiod watches for it.

  6. 06 Enrol namespaces and mark global services

    Joining the mesh is a label on the namespace: istio.io/dataplane-mode=ambient. Existing pods are enrolled without a restart. To make a service visible across clusters, label the Service itself with the global scope label and set a traffic distribution so local endpoints win.

    Because discovery is opt-in per service, a new team cannot accidentally appear in another cluster. Authorisation uses the same identities, so you can write a policy that allows only a specific service account from the peer cluster.

  7. 07 Wire telemetry and test failover

    ztunnel exposes L4 metrics (connections, bytes, identity labels) and istiod exposes control-plane health. Scrape both with your Prometheus, then point Kiali at each cluster using the same remote secret pattern so the graph shows cross-network edges.

    Failover is only real once you have tested it. Scale the local backend to zero and watch calls shift to the peer through the gateway.

// How to verify it works

  • istioctl remote-clusters --context cluster-a lists cluster-b as synced; the same from cluster-b.
  • istioctl ztunnel-config certificates --context cluster-a shows workload certs whose issuer is your Vault intermediate, not a self-signed Istio CA.
  • A pod in an enrolled namespace shows no sidecar (kubectl get pod reports 1/1 containers) yet istioctl ztunnel-config workloads lists it with protocol HBONE.
  • With the local orders deployment scaled to zero, a call from cluster A still returns 200 and the ztunnel logs show the east-west gateway as the next hop.
  • A call from a service account not listed in the AuthorizationPolicy is rejected with a connection reset, proving identity is enforced across clusters.

// Design decisions and trade-offs

  • Ambient (ztunnel + optional waypoints) instead of sidecars: no pod restarts to join the mesh and no per-pod proxy memory tax.
  • Multi-primary on different networks, so each cluster keeps a local control plane and survives the loss of its peer.
  • One external CA (Vault PKI through istio-csr) for every cluster, so cross-cluster trust is a property of the root and not of per-cluster certificates.
  • Remote-secret credentials are a bounded service account with read-only discovery rights, not a cluster-admin kubeconfig.
  • Only services explicitly marked global are discoverable across clusters; everything else stays local by default.

// Pitfalls and lessons learned

  • Duplicate clusterName or network values do not fail the install; they silently merge endpoints and produce impossible routing. Treat them as unique keys and test them in CI.
  • Leaving ENABLE_CA_SERVER on means istiod happily signs with its own CA for some paths and you get confusing trust errors that only appear cross-cluster.
  • The gateway load balancer must be reachable from the peer pods, not only from the peer API server. Firewall rules for 15008 and 15012 are the most common first-day failure.
  • A remote secret built from an admin kubeconfig works and is a security incident waiting to happen. Bound the service account from day one; retrofitting is painful.
  • Certificate TTLs and clock skew: with 24 hour certs and a drifting node, handshakes fail at rotation time in ways that look like network problems.
  • Waypoints are per namespace or service; people assume enabling ambient gives HTTP-level policy. L4 identity policy works without them, L7 rules do not.
  • Mixing sidecar and ambient workloads is supported but easy to misconfigure; migrate namespace by namespace and check the dataplane-mode label on both namespace and pod.

// Frequently asked questions

How does istio ambient multicluster differ from sidecar multicluster?

The control-plane concepts (multi-primary, remote secrets, east-west gateway) are the same, but the data plane is ztunnel on each node and HBONE tunnels instead of per-pod proxies. You do not inject or restart workloads to join.

Do I need Vault, or can istiod use its own CA?

Istiod's CA works for a single cluster. For multiple clusters you need a common root; Vault is one good source, but any CA cert-manager can talk to (or a plugged-in root) works as long as every cluster chains to it.

Can ambient meshes run across clusters with overlapping pod CIDRs?

Yes, that is the point of the multi-network model: pods never address each other directly across networks, traffic goes through the east-west gateway.

What is HBONE?

HTTP-Based Overlay Network Encapsulation: mTLS-protected HTTP CONNECT tunnels that ztunnel uses to carry TCP between nodes and through gateways, on port 15008.

How do I do canary or L7 routing in ambient?

Deploy a waypoint proxy for the namespace and attach HTTPRoute resources to it; ztunnel then hands traffic to the waypoint for L7 processing.

// The outcome

Workloads in separate private clusters get mutual TLS, identity-based policy and locality-aware failover with no application changes and no sidecar injection. Joining a namespace to the mesh is a label, and trust rotation is a Vault operation rather than a mesh outage.

// Where to take it next

// Keep reading