Skip to content
Back to Blog
1 min read

Linkerd: Lightweight Service Mesh for Kubernetes

I wrote “Linkerd: Lightweight Service Mesh for Kubernetes” to share practical, production-minded guidance on this topic.

Installation

# Install CLI
curl -sL https://run.linkerd.io/install | sh
export PATH=$PATH:$HOME/.linkerd2/bin

# Check prerequisites
linkerd check --pre

# Install on cluster
linkerd install | kubectl apply -f -

# Verify
linkerd check

Injecting Sidecars

# Annotate namespace
kubectl annotate namespace default linkerd.io/inject=enabled

# Or inject existing deployment
kubectl get deploy -o yaml | linkerd inject - | kubectl apply -f -

Traffic Split

apiVersion: split.smi-spec.io/v1alpha1
kind: TrafficSplit
metadata:
  name: canary-split
spec:
  service: api
  backends:
  - service: api-v1
    weight: 900m
  - service: api-v2
    weight: 100m

Observability

# Dashboard
linkerd viz dashboard

# Metrics
linkerd viz stat deploy

# Top requests
linkerd viz top deploy/api

Summary

Linkerd offers simplicity and low overhead, ideal for teams wanting service mesh benefits without complexity.

Michael John Peña

Michael John Peña

Senior Data Engineer based in Sydney. Writing about data, cloud, and technology.