Skip to main content
XenonStack

Observability

XenonStack Insights Linkerd Service Mesh: Architecture and Best Practices

| Published | Updated

Linkerd service mesh: Kubernetes workloads, control plane, Rust micro-proxy per pod, secure and observable services

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.

Two column diagram. Control plane: destination service, identity service, proxy injector, CLI. Data plane: sidecar proxy, mutual TLS, load balancing, metrics.
PartRole
Destination serviceGives proxies service discovery, policy and service profile information.
Identity serviceA certificate authority that signs certificates for proxies.
Proxy injectorA Kubernetes admission controller that adds the proxy to pods carrying the linkerd.io/inject: enabled annotation.
linkerd2-proxyAn 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 ideaScopeWhere to read more
LinkerdService mesh for Kubernetes with its own Rust proxyThis guide
IstioAnother service meshIstio service mesh architecture
Envoy proxyA general proxy that meshes can build onEnvoy proxy mesh
Data meshAn approach to data ownership, not network trafficData 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.

  1. Confirm your workloads run on Kubernetes and that you can restart pods, because a pod must be created again to receive the proxy.
  2. Install the control plane following the documentation for your Linkerd version.
  3. Annotate one namespace or a few deployments for injection and check that traffic between them is meshed.
  4. Watch the metrics, then build alerts on the success rate and latency the proxies report.
  5. 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?

  1. List the services that call each other and pick two or three to mesh.
  2. Install Linkerd in a test cluster and inject those services.
  3. Confirm mutual TLS and read the baseline metrics.
  4. 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.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue