Key takeaway
- What Linkerd is, how its control plane and Rust proxy work, what it adds to Kubernetes services, how to adopt it step by step and where AI agents fit.
Linkerd is an open-source service mesh for Kubernetes that adds mutual TLS, load balancing, retries and metrics to the traffic between your services without changes to application code. A small proxy runs next to each workload and handles the network side, while a control plane configures the proxies.
This guide is for platform and DevOps engineers who run cloud-native applications on Kubernetes and want to know what Linkerd does, how it is built today, and how to adopt it safely. It covers the architecture, features, a comparison with neighbouring ideas, adoption steps and the role of AI agents.
What is Linkerd and why does it matter?
A service mesh is an infrastructure layer that handles communication between services. Linkerd is one such mesh, created by Buoyant, and the Linkerd features page lists what it provides: automatic mutual TLS between meshed applications, load balancing across endpoints for HTTP, HTTP/2 and gRPC, retries and timeouts, traffic splitting for canary and blue/green releases, and metrics collected automatically from every service that sends traffic through the mesh.
It matters because each of those concerns would otherwise be rewritten inside every service, in every language. Moving them into the platform keeps applications simpler and gives operators one consistent view of service-to-service traffic. It sits between the older idea of service-oriented architecture and today's microservices, where the number of network calls makes consistent handling valuable.
How is Linkerd built?
The Linkerd architecture reference describes a control plane and a data plane, with a command line tool used to interact with both.
| Part | Role |
|---|---|
| Destination service | Gives proxies service discovery, policy and service profile information. |
| Identity service | A certificate authority that signs certificates for proxies. |
| Proxy injector | A Kubernetes admission controller that adds the proxy to pods carrying the linkerd.io/inject: enabled annotation. |
| linkerd2-proxy | An ultralight micro-proxy written in Rust, built for the service mesh use case, that handles HTTP, HTTP/2 and TCP. |
Proxies run as sidecar containers inside application pods, and the same page notes that as of Linkerd 2.20 they deploy by default as native sidecar containers. Proxies receive certificates from the identity service at startup and use them for proxy-to-proxy mutual TLS, and they export Prometheus metrics for HTTP and TCP traffic.
Earlier descriptions of Linkerd named a controller, web, Prometheus and Grafana as the control plane parts, and often advised running one proxy per node. Current documentation describes the components above and the sidecar model instead, so check the version you install.
How does Linkerd differ from related tools?
| Tool or idea | Scope | Where to read more |
|---|---|---|
| Linkerd | Service mesh for Kubernetes with its own Rust proxy | This guide |
| Istio | Another service mesh | Istio service mesh architecture |
| Envoy proxy | A general proxy that meshes can build on | Envoy proxy mesh |
| Data mesh | An approach to data ownership, not network traffic | Data mesh and its benefits |
How do you adopt Linkerd?
Adopt it gradually. A mesh touches every request, so prove it on a few services first.
- Confirm your workloads run on Kubernetes and that you can restart pods, because a pod must be created again to receive the proxy.
- Install the control plane following the documentation for your Linkerd version.
- Annotate one namespace or a few deployments for injection and check that traffic between them is meshed.
- Watch the metrics, then build alerts on the success rate and latency the proxies report.
- Widen injection service by service, and review proxy resource use as you grow.
If your platform also needs a data layer to analyse the metrics you collect, the same teams often look at modern data warehouse services, and organisations planning a wider cloud-native programme can contact XenonStack.
What best practices apply?
- Inject a small set of services first and test traffic between them before going cluster-wide.
- Use the CNI plugin option if your security policy does not allow the init container privileges it would otherwise need.
- Alert on the metrics the proxies export rather than on guesses about service health.
- Keep the mesh version current and read the release notes before upgrading.
How do AI agents change service mesh operations?
Mesh metrics give agents a trustworthy, uniform view of every call between services. An agent can read success rate and latency per route, explain a regression, propose a traffic split for a canary, and open a change for a person to approve. Agents that call tools and models also generate service traffic of their own, which the mesh can secure and observe in the same way. Keep changes to retries, timeouts and traffic shifting behind human approval. XenonStack's ElixirClaw is the AI agents computing platform for building and running agents like these.
What should you do first?
- List the services that call each other and pick two or three to mesh.
- Install Linkerd in a test cluster and inject those services.
- Confirm mutual TLS and read the baseline metrics.
- Decide who approves changes to routing, retries and timeouts.
To map one decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
Do I need to change my application code to use Linkerd?
No. The proxy is injected into pods automatically based on annotations, so features such as mutual TLS and metrics do not require changes to application code.
What does the Linkerd proxy do?
It is an ultralight micro-proxy written in Rust that handles HTTP, HTTP/2 and TCP traffic, balances load, applies automatic TLS and exports metrics.
Does Linkerd run one proxy per node?
The current architecture reference describes proxies running as sidecar containers in application pods, deployed by default as native sidecars as of Linkerd 2.20.
Which protocols does Linkerd support?
Advanced features are enabled automatically for HTTP, HTTP/2 and gRPC, and the proxy can also handle other TCP traffic.
How do AI agents use a service mesh?
They can read mesh metrics to explain regressions and propose changes for approval, and their own tool and model calls can be secured and observed by the mesh.
Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE