DEV Community

Alex Spinov
Alex Spinov

Posted on

Linkerd Has a Free API — The Lightweight Service Mesh

Linkerd is the lightest and fastest service mesh for Kubernetes. If Istio feels too complex, Linkerd gives you 80% of the value with 20% of the complexity.

What Is Linkerd?

Linkerd is a CNCF graduated project that adds reliability, security, and observability to Kubernetes without code changes. It uses its own ultralight proxy (linkerd2-proxy) written in Rust.

Key features:

  • Automatic mTLS (zero-config)
  • Golden metrics (success rate, latency, throughput)
  • Retries and timeouts
  • Traffic splitting
  • Multi-cluster support

Install Linkerd

curl --proto "=https" -sL https://run.linkerd.io/install | sh
export PATH=$HOME/.linkerd2/bin:$PATH
linkerd check --pre
linkerd install --crds | kubectl apply -f -
linkerd install | kubectl apply -f -
linkerd check
Enter fullscreen mode Exit fullscreen mode

Add to Your App

# Inject sidecar into deployment
kubectl get deploy my-app -o yaml | linkerd inject - | kubectl apply -f -

# Check metrics
linkerd stat deploy/my-app
Enter fullscreen mode Exit fullscreen mode

Output:

NAME     MESHED   SUCCESS   RPS   LATENCY_P50   LATENCY_P99
my-app   1/1      100.00%   5.2   1ms           10ms
Enter fullscreen mode Exit fullscreen mode

Traffic Split API

apiVersion: split.smi-spec.io/v1alpha4
kind: TrafficSplit
metadata:
  name: my-app-split
spec:
  service: my-app
  backends:
  - service: my-app-v1
    weight: 900
  - service: my-app-v2
    weight: 100
Enter fullscreen mode Exit fullscreen mode

Use Cases

  1. Zero-trust networking — mTLS with no config
  2. Canary releases — gradual rollouts
  3. Debugging — per-route success rates
  4. Reliability — automatic retries, timeouts
  5. Multi-cluster — cross-cluster communication

Linkerd vs Istio

Feature Linkerd Istio
Proxy Rust (2MB) Envoy (50MB)
Install time 2 min 10 min
Resource usage Low High
Complexity Simple Complex
mTLS Auto Config needed
CNCF Graduated Graduated

Need web data at scale? Check out my scraping tools on Apify or email spinov001@gmail.com for custom solutions.

Top comments (0)