Service Mesh

A service mesh is an infrastructure layer that manages communication between services, adding encryption, identity, traffic control and telemetry to every call without changing application code.

Also known as: Mesh, Istio, Linkerd

Related terms in this glossary

How it works

A mesh has a data plane of proxies that carry traffic between services and a control plane that configures them. There are three main designs:

  • Sidecar: a proxy container runs next to every pod, as in classic Istio (Envoy) and Linkerd (its Rust micro-proxy).
  • Sidecarless or ambient: Istio's ambient mode, generally available since Istio 1.24 in 2024, uses a per-node proxy for mTLS and optional waypoint proxies for layer 7 features, which reduces resource use.
  • eBPF-based: Cilium service mesh handles much of the work in the Linux kernel with a per-node proxy.

Typical capabilities include mutual TLS with automatic certificate rotation, service identity and authorization policies, retries and timeouts, traffic splitting for canary releases, and golden-signal metrics and traces for every call. Meshes increasingly use Gateway API resources for traffic rules.

Why it matters

A mesh gives consistent security and reliability across many services, written in many languages, without each team reimplementing it. It is a common way to meet "encrypt all internal traffic" and zero-trust requirements. It also adds moving parts, latency, resource cost and a new system to upgrade and debug. For a handful of services, a well-configured ingress, network policies and application libraries may be enough. Consider a mesh when mTLS is required, services are numerous, or you need fine-grained traffic control. See Gepton's Kubernetes service.

Service Mesh in depth

Adopting a mesh in stages

Rolling out a mesh to every service at once is risky. A staged approach:

  1. Define the goal. Is it mTLS for compliance, traffic control for canary releases, or uniform telemetry? The goal decides which features to enable.
  2. Pick the data plane model that fits resource and operational limits: sidecar, ambient or eBPF-based.
  3. Install in a non-production cluster and enroll a few services by namespace.
  4. Enable mTLS in permissive mode, so plaintext and encrypted traffic both work while services are enrolled.
  5. Confirm all callers are in the mesh, then switch to strict mTLS.
  6. Add authorization policies that allow only the service-to-service calls each workload needs.
  7. Introduce traffic features such as retries, timeouts and weighted routing only where a team needs them.

Plan upgrades from the first day. A mesh sits in the path of every request, so its control plane and proxies need the same tested, staged upgrade process as the cluster itself, ideally with canary control planes where the mesh supports them.

Example: canary releases with traffic splitting

Example: a payments team wants to release a new version of its fraud-scoring service gradually. With the mesh in place, the team deploys version two alongside version one and defines a route that sends a small share of requests to the new version, using an HTTPRoute with weighted backends or the mesh's own routing resource. Mesh telemetry shows success rate and latency for each version side by side. An automated rollout tool such as Argo Rollouts or Flagger increases the share step by step while metrics stay healthy, and rolls back automatically if error rates rise. No change to the application code was needed for routing or metrics.

Comparing the main options

MeshData planeNotes
Istio (sidecar)Envoy per podBroadest feature set, most configuration surface
Istio (ambient)Per-node ztunnel, optional waypoint proxiesLower per-pod overhead; layer 7 only where waypoints are deployed
LinkerdRust micro-proxy per podFocus on simplicity and low overhead
CiliumeBPF plus per-node EnvoyCombines CNI, network policy and mesh features

The Gateway API project's GAMMA initiative defines how Gateway API resources describe mesh traffic, which reduces lock-in to one mesh's custom resources.

Measuring a mesh

  • Share of service traffic encrypted with mTLS, and share covered by authorization policies.
  • Added latency per hop at high percentiles, compared with a baseline.
  • CPU and memory used by proxies across the cluster.
  • Incidents caused by mesh configuration or upgrades.
  • Time to diagnose service-to-service issues, using mesh metrics and traces.

Typical problems are enabling strict mTLS before every caller is enrolled, no resource requests for sidecars, mesh upgrades left untested until a security patch forces a rush, retries layered in both application and mesh causing retry storms, and adopting a mesh only for telemetry that OpenTelemetry could provide. Meshes use eBPF in some designs and feed observability tools. Gepton designs and operates meshes in Kubernetes and DevSecOps engagements.

Questions about Service Mesh

Something else? Send us your question and an engineer replies with next steps.

Does a service mesh replace Kubernetes network policies?

Not entirely. Network policies work at layers 3 and 4, controlling which pods can connect on which ports, and are enforced by the CNI plugin. Mesh authorization policies work with service identities from mTLS certificates and can check layer 7 details such as HTTP paths and methods. Many teams use both: network policies as a coarse, default-deny boundary, and mesh policies for identity-based rules between services.

How much overhead does a service mesh add?

It varies by mesh, data plane design, traffic volume and features enabled. Sidecar meshes add a proxy to every pod, consuming CPU and memory and adding some latency per hop. Ambient and eBPF-based designs reduce per-pod overhead by moving work to shared node-level components. Measure on your own workloads in a test cluster, comparing latency at high percentiles and total resource use with and without the mesh.

Articles that mention Service Mesh

All articles

Jump to

↑↓ to move↵ to open