A microservices application is easy to draw and hard to run. On a whiteboard, a dozen small services call each other with clean arrows. In a real cluster, those arrows are network calls that can fail, time out, or be intercepted, and every one of those problems has to be solved inside each service, in every language the team uses. The first team solves it with a retry loop. The second team solves it with a different one. The tenth team does not solve it at all.
A service mesh is the answer to that problem, and it is a simple idea once you see it. Instead of putting networking logic inside every service, you put a small network proxy next to every service, and you let that proxy handle the concerns that are the same everywhere: encrypting traffic, retrying failed requests, splitting traffic between versions, collecting metrics, and enforcing who may call whom. The application code does not change. The proxy does the work, and a central control plane tells every proxy what the rules are.
This guide assumes you know the basics of Kubernetes: pods, services, and deployments. If those are new to you, start with our Kubernetes tutorial for beginners and come back. The mesh builds directly on the service model that tutorial explains, so the concepts here will make more sense once you know how a plain Kubernetes Service routes traffic. For the networking that a mesh sits on top of, see our Kubernetes Services guide.
What a Service Mesh Actually Is
A service mesh is a dedicated infrastructure layer for service-to-service communication. “Dedicated” means it is a separate layer from the application and from the cluster: not a library you import, and not a feature of Kubernetes itself. “Infrastructure layer” means it runs as part of the platform, managed by the platform team, and the application teams benefit from it without owning it. “Service-to-service communication” is the scope: the mesh handles traffic between your services, not traffic from the outside world into the cluster, which is the job of an ingress controller or a gateway.
The mesh solves four problems that every microservices system has. The first is security: traffic between services travels over the cluster network, and by default it is unencrypted and unauthenticated, so any compromised pod can listen in or impersonate another service. The second is observability: when a request passes through five services, you need to know where it spent its time and where it failed, and adding that instrumentation to every service by hand is a project that never finishes. The third is traffic management: rolling out a new version to a fraction of users requires routing rules that live somewhere central. The fourth is resilience: retries, timeouts, and circuit breaking are the same logic in every service, and they are exactly the logic that gets written badly under deadline pressure.
The key insight of the mesh is that these four problems are all networking problems, and networking problems can be solved in the network. A proxy that sits in the path of every request can encrypt it, measure it, route it, and retry it, without the application knowing any of that is happening. The application makes an ordinary HTTP call to a service name, and the proxy intercepts it, applies the rules, and forwards it. The application developer writes business logic. The platform team writes networking rules. That separation is the value of the mesh, and also its cost, since the new layer has to be installed, upgraded, monitored, and debugged.
The Sidecar Pattern and the Data Plane
The classic way a mesh gets its proxy into the path of traffic is the sidecar pattern. A sidecar is a second container that runs in the same pod as the application container, sharing the pod network namespace. When the mesh is installed, an admission webhook injects the sidecar container into every new pod automatically, so application teams do not have to change their manifests. The sidecar intercepts all inbound and outbound traffic for the pod: every request the application sends goes through the sidecar first, and every request the application receives arrives through the sidecar first.
All of those sidecars together form the data plane. The data plane is the part of the mesh that touches real traffic. It is the only part that adds latency to a request, the only part that consumes CPU and memory per pod, and the only part that can break a request in flight. Its job is narrow and mechanical: apply the routing rules, enforce the security policy, collect the metrics, and forward the bytes. It does not decide what the rules are. That decision belongs to the control plane, which pushes configuration down to every sidecar and collects the telemetry back up.
The two meshes this guide compares use different proxies. Istio uses Envoy, a high-performance proxy written in C++ that was originally built at Lyft and is now one of the most capable Layer 7 proxies in existence. Envoy is enormously flexible: it can do detailed traffic policies, JWT authentication, rate limiting, and WebAssembly extensions. Linkerd uses its own proxy, linkerd2-proxy, written in Rust and built for exactly one job: being a service mesh sidecar. It is smaller and lighter than Envoy, and it does fewer things, but the things it does, it does with very low overhead. That difference in philosophy, a general-purpose proxy versus a purpose-built one, runs through every other difference between the two projects.
Istio has recently added a second data plane shape alongside sidecars, called ambient mode. Ambient mode moves the proxying out of the pod and into a shared per-node component called ztunnel, which handles Layer 4 traffic, with optional waypoint proxies that add Layer 7 processing only where it is needed. Ambient mode has been generally available since Istio 1.24, and it means most pods carry no proxy at all, which removes the per-pod cost that is the most common complaint about sidecar meshes. Sidecars and ambient workloads can run in the same mesh, and Istio’s own documentation describes ambient as simpler to operate, while still recommending sidecars for workloads that need the most fine-grained configuration.
The Control Plane: istiod and the Linkerd Control Plane
If the data plane is the hands of the mesh, the control plane is the brain. It has three jobs: it watches the cluster and knows which services and endpoints exist, it turns the rules you write into proxy configuration and pushes that configuration to every sidecar, and it issues and rotates the certificates that make mutual TLS work. Operators talk to the control plane. Applications never see it. When you create a routing rule, you are writing a Kubernetes custom resource, and the control plane is the component that reads it, translates it, and distributes it.
In Istio, the control plane is a single binary called istiod. It combines what used to be three separate components: Pilot, which handled service discovery and configuration; Citadel, which handled certificates; and Galley, which handled configuration validation. Consolidating them into one binary made Istio easier to install and operate than the early multi-component versions, but istiod remains a sophisticated piece of software, and understanding what goes wrong when it misbehaves requires knowing how Envoy configuration works underneath. Istio also ships with Kiali, a dashboard that visualises the mesh: the services, the traffic between them, and the health of each connection.
Linkerd’s control plane is deliberately smaller. It has a destination service that tells proxies where endpoints are, an identity service that issues certificates, and a small set of supporting components, all of which are designed to be simple enough to reason about. Linkerd ships with a dashboard too, and its linkerd check command reports whether every component is healthy, which is the first thing to run when something looks wrong. The operational surface area is smaller than Istio’s, and that is not an accident: Linkerd’s design goal is to do the core mesh well and to leave the exotic features out.
Both control planes share one important property: they are the single point where a mistake becomes a cluster-wide outage. A bad routing rule, a certificate that fails to rotate, or a control plane upgrade that goes wrong can affect every service at once. That is why both projects invest heavily in validation, and why the safest way to run either mesh is to install it in a test cluster first, learn its failure modes there, and only then bring it to production.
mTLS and Zero-Trust Security
The security story is the reason most teams adopt a mesh, and it is worth understanding properly, because it is also the feature most often misunderstood. By default, traffic between pods in a Kubernetes cluster is unencrypted. Any pod that can reach the cluster network can read it, and any pod can claim to be any service. Network policies can restrict which pods may talk to each other, but they work at the level of IP addresses and ports, not at the level of service identity, and they do not encrypt anything.
A mesh fixes both problems with mutual TLS, usually written mTLS. With mTLS, every connection between meshed services is encrypted, and both sides authenticate each other with certificates. The client proves it is the service it claims to be, and the server proves the same in return. The certificates are issued by the mesh control plane, rotated automatically, and tied to the Kubernetes service account of each workload, so identity follows the workload rather than the IP address. A pod that is rescheduled to a new node with a new IP keeps the same identity, and a compromised pod cannot impersonate a service it is not, because it does not hold that service’s certificate.
This is the practical meaning of zero trust inside a cluster: no service is trusted because of where it runs, only because of what it can prove about itself. The mesh also enforces that trust with policy. Istio’s AuthorizationPolicy resource lets you write rules such as “only the checkout service may call the payments service, and only with a valid JWT token”, and those rules are enforced by the proxies, not by the application. Linkerd enforces a simpler version of the same idea: mTLS is on by default for all TCP traffic between meshed pods, and authorization policies control which service accounts may call which services. The difference is one of depth. Istio’s policy model is far more expressive. Linkerd’s is far easier to understand and audit.
# Istio: only the checkout service may call payments, with a valid token
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: payments-access
namespace: shop
spec:
selector:
matchLabels:
app: payments
rules:
- from:
- source:
principals: ["cluster.local/ns/shop/sa/checkout"]
to:
- operation:
methods: ["POST"]
paths: ["/charge"]
There is one honest limitation to name. mTLS secures traffic between meshed services, and it secures nothing else. It does not encrypt traffic from a pod that is not in the mesh, it does not protect data at rest, and it does not fix an application that trusts user input it should not trust. A mesh is a strong layer of defence, and it is not a substitute for the other layers: network policies, secrets management, image scanning, and application-level validation all still matter.
Traffic Management: Canary Releases, Retries, and Circuit Breaking
The second reason teams adopt a mesh is traffic management, and it is the reason that pays for itself most visibly. Without a mesh, shifting traffic between two versions of a service means changing the service selector, or updating an ingress rule, or deploying a new service and updating every client. With a mesh, it means writing a routing rule and applying it, and the change takes effect across the whole cluster in seconds, with no redeployment of anything.
Istio expresses traffic rules with two resources. A VirtualService defines how requests to a service are routed: which subsets of pods receive traffic, what fraction each subset gets, and what happens on failure. A DestinationRule defines the subsets themselves and the policies that apply to them, such as connection limits and outlier detection. Together they describe a canary release in a few lines of YAML: ninety percent of traffic to the stable version, ten percent to the new version, with the split adjustable at any moment. Linkerd expresses the same idea differently, with ServiceProfiles that define routes and their retry and timeout behaviour, and with traffic splitting handled through its own traffic split resource or through the Gateway API. The mechanism differs, but the outcome is the same: traffic routing becomes configuration, not code and not redeployment.
# Istio: send 90% of traffic to v1 and 10% to v2
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
name: web
namespace: shop
spec:
hosts:
- web
http:
- route:
- destination:
host: web
subset: v1
weight: 90
- destination:
host: web
subset: v2
weight: 10
Retries and timeouts are the quieter part of traffic management, and they matter more than the canary split, because they decide what happens when a service is slow or failing. A mesh can retry a failed request automatically, but only for requests that are safe to retry: a failed GET can be retried, a failed POST that charges a credit card cannot. It can set a timeout per route, so a slow dependency fails fast instead of holding a connection open and cascading the delay to every caller. And it can break the circuit: if a service starts failing most of its requests, the mesh stops sending it traffic for a while, which gives it room to recover and stops the failure from spreading.
Observability is the third leg of the same stool, and it comes free with the proxy. Because every request passes through a sidecar, the mesh can record the latency, the status code, and the success rate of every service-to-service call, with no code changes and no instrumentation in the application. That gives you a service graph: which services call which, how long each call takes, and where the errors are concentrated. When a request is slow, the graph shows you the slow hop. The metrics are not as detailed as application-level tracing, and they will not tell you which database query was slow, but they answer the first question in every incident, which is where the problem is.
Istio vs Linkerd: A Head-to-Head Comparison
Both projects are mature, both are graduated projects of the Cloud Native Computing Foundation, and both are used in production by large organisations. The choice is not between a good mesh and a bad one. It is between two different philosophies, and the right choice depends on what your team values and what your cluster needs.
Istio is the full-featured option. Its current release is 1.32.0, announced on 9 November 2026, and it is officially supported on Kubernetes versions 1.33 to 1.37, which covers the current cluster versions. It has the deepest feature set: the most expressive traffic policies, the most detailed authorization model, the most extensive Gateway API support, and the most mature multi-cluster story. It also has the ambient mode described earlier, which removes the sidecar from most pods, and it has the largest ecosystem of extensions and integrations. If your requirements include fine-grained policy, multi-cluster meshes, or Gateway API features that other meshes do not yet support, Istio is the only one of the two that will meet them.
The lightweight option is Linkerd. Its current stable line is 2.20, released on 23 June 2026, and since that release its native sidecars have been the default deployment model, which means the proxy runs as a native sidecar container rather than a regular container in the pod. Linkerd does fewer things than Istio, and it does them with less overhead: its Rust proxy uses less memory and adds less latency than Envoy, its control plane is simpler to operate, and its configuration model is small enough to hold in your head. It covers the core mesh use cases completely: mTLS, Layer 7 observability, traffic splitting, retries, and timeouts. What it does not have is Istio’s extensibility or its advanced policy features, and it has no ingress controller of its own.
One Linkerd detail matters for anyone evaluating it, and it is easy to miss. Since February 2024 the open-source project no longer publishes numbered stable releases. It publishes edge releases several times a month, and the numbered stable builds, such as 2.20, are shipped by vendors, in practice Buoyant Enterprise for Linkerd. That does not mean the open-source releases are unstable, but it does mean you should check which release channel you are installing, and keep the command line tool, the control plane, and any extensions on matching versions. The linkerd version command shows the client and server versions, and a mismatch between them is a common source of confusing errors.
# Install Istio with the istioctl command line tool
istioctl install --set profile=default -y
kubectl label namespace shop istio-injection=enabled
# Install Linkerd with the linkerd command line tool
linkerd check --pre
linkerd install --crds | kubectl apply -f -
linkerd install | kubectl apply -f -
kubectl annotate namespace shop linkerd.io/inject=enabled
# Verify the mesh is healthy
kubectl get pods -n istio-system
linkerd check
The table below summarises the comparison. Treat it as a starting point for your own evaluation, not as a verdict, because the numbers that matter most, latency and memory per proxy, depend on your traffic patterns and your cluster size. Istio uses the Envoy proxy, written in C++, with sidecars plus ambient mode, the widest feature breadth, and a sophisticated istiod control plane, which makes it the best fit for large, complex, multi-cluster environments with demanding policy requirements. Linkerd uses its own Rust proxy, native sidecars by default since 2.20, core features only, and a small, simple control plane, which makes it the best fit for teams adopting their first mesh, or running smaller clusters where simplicity matters more than feature depth.
When NOT to Use a Service Mesh
The most useful section of any service mesh guide is the one that tells you not to install one, because a mesh is the most complex piece of infrastructure you can add to a cluster, and many clusters do not need it. If you have a handful of services, or a monolith with a few supporting services, the mesh will cost you more in operational effort than it saves in application code. The problems it solves, cross-service security, traffic management, and observability, only become painful at a scale where several teams own several services each, and where the services change independently and frequently. Below that scale, a good ingress controller, a Gateway API implementation, and network policies will cover most of what you need.
There are also specific situations where a mesh is the wrong tool even at scale. If your services communicate mostly through a message queue rather than direct HTTP calls, the mesh sees very little of your traffic, because the queue, not the mesh, is the communication path. If your workloads are mostly batch jobs or single-tenant services that never call each other, there is no service-to-service traffic to secure or observe. If your team has no one who can own the mesh, learn its failure modes, and debug it at two in the morning, the mesh will become the thing that breaks and nobody understands, which is worse than not having it. A mesh is a platform commitment, and it needs an owner.
Cost is the other honest factor. Every sidecar consumes CPU and memory, and on a cluster with hundreds of pods that adds up to real capacity. Every request passes through two proxies, one on the sending side and one on the receiving side, and each hop adds latency, typically a millisecond or two per hop for Linkerd and a little more for Envoy. Istio’s ambient mode reduces the per-pod cost substantially, because most pods carry no proxy, though the ztunnel daemon set and the waypoint proxies still need to be operated.
Before you install a mesh, try the alternatives and see how far they get you. A Gateway API implementation handles ingress and cross-namespace routing, and our Kubernetes Gateway API guide explains that layer in detail. Network policies restrict which pods may talk to each other at the network level. A good observability stack, with distributed tracing added to your services, answers many of the same questions the mesh answers. If you work through that list and still have problems that only a mesh solves, then install one, in a test cluster first, with a small set of services, and grow it from there.
Frequently Asked Questions
What is a service mesh in simple terms?
A service mesh is a layer of small network proxies, one next to each service, that handles the networking concerns shared by all services: encryption, authentication, retries, traffic routing, and metrics. The application code does not change. A central control plane configures all the proxies at once. Istio and Linkerd are the two most widely used open-source meshes for Kubernetes.
Do I need a service mesh for microservices?
Not necessarily. A mesh pays off when you have many services owned by several teams, changing independently, with security and observability requirements that are hard to meet inside each service. With a handful of services, an ingress controller, network policies, and good observability usually cover the need. A mesh is a platform commitment that needs an owner, so do not install one you cannot operate.
What is the difference between Istio and Linkerd?
Istio is the full-featured mesh: it uses the Envoy proxy, has the deepest policy and traffic management features, supports multi-cluster deployments, and offers ambient mode as an alternative to sidecars. Linkerd is the lightweight mesh: it uses a small Rust proxy, does the core mesh features with less resource use and less operational complexity, and is simpler to learn and run. Choose Istio for breadth, Linkerd for simplicity.
What is Istio ambient mode?
Ambient mode is Istio’s sidecar-free data plane, generally available since Istio 1.24. Instead of a proxy in every pod, a per-node proxy called ztunnel handles Layer 4 traffic for all pods on its node, and optional waypoint proxies add Layer 7 features only where they are needed. Most pods carry no proxy at all, which removes the per-pod resource cost. Ambient and sidecar workloads can run in the same mesh.
Does a service mesh slow down my services?
Yes, a little. Every request passes through two proxies, one on the sending side and one on the receiving side, and each hop adds latency, typically around a millisecond or two per hop, depending on the proxy and the traffic. The mesh also consumes CPU and memory per pod for sidecars, or per node for ambient mode. For most applications the cost is acceptable, but it is real, and it is worth measuring on your own traffic before committing.
Conclusion
A service mesh moves the networking problems that every microservice shares out of the application and into the infrastructure. The proxies handle encryption, authentication, routing, retries, and metrics. The control plane holds the rules. The application developers write business logic, and the platform team owns the network. That separation is the value, and it is a real one, but it comes with a cost: a new layer of infrastructure to install, upgrade, monitor, and debug.
Istio is the choice when you need the most features, the deepest policy model, and multi-cluster support, and you have the team to operate it. Linkerd is the choice when you want the core mesh with the least overhead and the simplest operation, and you can live without the exotic features. Whichever you choose, start small: install it in a test cluster, mesh a few services, watch the traffic in the dashboard, and learn its failure modes before it carries production traffic.



