Kong Mesh separates the control plane, which manages configuration, from the data plane, which carries traffic. A zone represents one environment where workloads run, such as a Kubernetes cluster or a group of VMs. Each zone runs a zone control plane close to its workloads, and the zone control planes connect to a global control plane.
Architecture overview
Core architecture
Kong Mesh uses the following components:
- Global control plane: It stores the central view of the meshes and resources.
- Zone control planes: Each one finds the local workloads, exchanges resources with the global control plane over the Kuma Discovery Service (KDS), and sends configuration to the local proxies over xDS.
- Data plane: Envoy proxies that intercept application traffic and apply policies.
- Mesh-scoped zone proxies:
Dataplaneresources with a zone ingress or zone egress listener. They carry traffic into and out of a zone. - Service model:
MeshService,MeshMultiZoneService, andMeshExternalServiceresources that describe the destinations. - Identity and trust:
MeshIdentityandMeshTrustresources that give workloads their identity and decide which certificate authorities they trust.
For what changes when a second zone joins, see Multi-zone architecture. For which control plane owns each resource, see Resource scoping.
Day-2 operations compared with other meshes
Teams that evaluate Kong Mesh often already run an Istio-style mesh.
That model uses several traffic-management resources, such as VirtualService, DestinationRule, and ServiceEntry, on a control plane designed for Kubernetes first.
Both models support mTLS, traffic routing, and observability, and the first setup takes similar effort.
The differences appear in day-2 operations: running the mesh in production, across regions, and through upgrades.
|
Day-2 concern |
Istio-style mesh |
Kong Mesh |
|---|---|---|
| Policy structure |
One behavior can span several resources: routing in VirtualService, load balancing and outlier detection in DestinationRule, and external hosts in ServiceEntry. Newer versions use the Kubernetes Gateway API for routing.
|
One policy for each concern, and every policy uses the same targetRef structure. When you troubleshoot a production issue, you have fewer resource types that interact.
|
| Running across regions | You choose and maintain a multi-cluster topology, such as multi-primary or primary-remote. | A built-in global and zone model that syncs over KDS. To add a region, you add a zone control plane. If the global control plane goes offline, each zone control plane keeps the global resources that it last received and keeps configuring its proxies, so data plane traffic continues. |
| Kubernetes and VMs together |
Designed for Kubernetes. VMs join through WorkloadEntry and WorkloadGroup.
|
Kubernetes and Universal (VMs and bare metal) use the same resources, so one team runs one mesh across both. |
Kong Mesh architecture
The following diagrams show how the control planes are distributed, and how a request travels through a zone. The diagrams use the same notation:
- A solid arrow is data plane traffic.
- A dashed arrow is a control plane channel: xDS or KDS.
How the control planes connect
The global control plane, the zone control planes, and the proxies each have a different job:
|
Component |
What it does |
Carries application traffic |
|---|---|---|
| Global control plane | Stores global resources, sends them to the zones over KDS, and keeps an inventory of every zone. | No |
| Zone control plane | Finds the workloads in its zone, exchanges resources with the global control plane over KDS, and sends configuration to the local proxies over xDS. | No |
| Application proxy (sidecar) | Intercepts the traffic of its workload and applies routing, mTLS, authorization, and other policies. | Yes |
| Mesh-scoped zone ingress and zone egress | Carry the traffic of one mesh into and out of the zone. | Yes |
flowchart LR
K["Global control plane"]
subgraph Z1["zone1"]
C1["Zone control plane"]
A1["orders<br/>sidecar"]
end
subgraph Z2["zone2"]
C2["Zone control plane"]
I2["Zone ingress"]
A2["payments<br/>sidecar"]
end
K <-.->|KDS| C1
K <-.->|KDS| C2
C1 -.->|xDS| A1
C2 -.->|xDS| I2
C2 -.->|xDS| A2
A1 --> I2
I2 --> A2KDS and xDS carry configuration only. The solid arrows show the application request, which never passes through a control plane.
If the global control plane goes offline, each zone control plane keeps the global resources that it last received and keeps configuring its data plane proxies, so the mesh keeps working.
How a request travels between zones
Inside a zone, each workload runs next to an Envoy sidecar. The sidecar applies mTLS, retries, timeouts, and access policies. Requests from outside the mesh enter through an API gateway, such as Kong Gateway. For more information, see Application ingress. For cross-zone service discovery and routing, see Multi-zone architecture.
flowchart LR
subgraph Zone1["zone1 (Kubernetes)"]
Z1CP["Zone control plane"]
KG["Kong Gateway"]
subgraph FESvc["frontend pod"]
FE_App["frontend"]
FE_Envoy["Envoy sidecar"]
end
subgraph ORSvc["orders pod"]
OR_App["orders"]
OR_Envoy["Envoy sidecar"]
end
ZE_Z1["Zone egress<br/>(Dataplane)"]
end
subgraph Zone2["zone2 (Kubernetes)"]
ZI_Z2["Zone ingress<br/>(Dataplane)"]
subgraph PASvc["payments pod"]
PA_App["payments"]
PA_Envoy["Envoy sidecar"]
end
end
EXT["external-api (SaaS)"]
Z1CP -.->|xDS| FE_Envoy
Z1CP -.->|xDS| OR_Envoy
Z1CP -.->|xDS| ZE_Z1
KG --> FE_Envoy
FE_Envoy --> FE_App
FE_App --> FE_Envoy
FE_Envoy --> OR_Envoy
OR_Envoy --> OR_App
OR_App --> OR_Envoy
OR_Envoy --> ZI_Z2
ZI_Z2 --> PA_Envoy
PA_Envoy --> PA_App
OR_Envoy --> ZE_Z1
ZE_Z1 --> EXTIn this example, when orders in zone1 calls payments in zone2, the request takes five steps:
orderssends the request to its own Envoy sidecar over localhost.- The sidecar finds
paymentsin the configuration that thezone1control plane sent.paymentsruns in another zone, so the sidecar sends the request to the zone ingress ofzone2, at the address thatzone2published as aMeshZoneAddress. - The zone ingress uses its configuration from the
zone2control plane to choose a healthypaymentsinstance. It forwards the encrypted connection without decrypting it. - The Envoy sidecar of
paymentsreceives the request. - That sidecar forwards the request to the
paymentsapplication over localhost.
Between the two sidecars, the connection uses mTLS with the Secure Production Identity Framework for Everyone (SPIFFE) identities that MeshIdentity issues.
Only the first and last steps, between an application and its own sidecar, use plaintext, because that traffic never leaves the Pod or VM.
The call to external-api, a service outside the mesh, takes a different path.
external-api is a MeshExternalService, so the sidecar sends the request to the zone egress of zone1, which forwards it to the SaaS endpoint.
For both paths, see Traffic paths.
Scalability and fault tolerance
The global and zone control planes are separate, so the mesh can grow to thousands of services in several regions without a single point of failure. If a zone loses its connection to the global control plane, its zone control plane keeps serving the workloads in that zone. The zone receives changes from the global control plane again when the connection returns.