Services

Resources

Company

/

Service mesh

Service mesh

A service mesh is an infrastructure layer that manages network traffic between services in a cluster. It adds mutual TLS (mTLS) encryption, identity-based access policy, retries, traffic splitting and telemetry, without changes to application code. Istio is the most widely used open-source mesh. Its ambient mode removes the per-pod sidecar proxy that older meshes required.

How it works

In sidecar mode, Istio injects an Envoy proxy into every pod, and all traffic flows through it. In ambient mode, a shared ztunnel proxy on each node handles mTLS and layer 4 policy, and optional waypoint proxies add layer 7 rules such as HTTP routing. For example, a cluster with 20 nodes and 400 pods runs 20 ztunnels instead of 400 sidecars. An AuthorizationPolicy can then allow only the checkout service account to call payments.

Why it matters in production

A mesh gives workload-level isolation and encryption when network-level controls are weak, such as on a flat on-prem network. It also adds moving parts to upgrade, debug and pay for in CPU and memory. Teams should adopt it for a concrete need such as zero-trust policy, not by default.

See also

On the One2N blog

References

  1. Origin of the term

  2. Istio ambient mode overview

  3. What is a service mesh? (istio.io)

Diagram of a service mesh: the checkout and payments services each run an app next to a proxy. Checkout's app calls its own proxy, which sends the request over mTLS, with retries, to the payments proxy and on to the payments app. A control plane pushes config to both proxies, both proxies send metrics to a dashboard, and a call from a search service is denied. A red note says every proxy costs CPU and memory.

Putting this into practice?

Talk to One2N about our platform engineering services

Talk to One2N about our platform engineering services