linkerd-patterns

Implement Linkerd service mesh patterns for mTLS, traffic splits, and routing policies on Kubernetes.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill linkerd-patterns-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: linkerd-patterns
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/linkerd-patterns
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill linkerd-patterns-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up a service mesh involves many moving parts: control plane installation, proxy injection, mTLS, traffic management, and authorization policies. This Skill provides production-ready Linkerd templates and commands so you can configure a lightweight, security-first service mesh on Kubernetes without assembling configurations from scratch. ## Core Features & Use Cases - Mesh Installation & Injection: Step-by-step CLI commands to install the Linkerd control plane, validate the cluster, and enable automatic proxy injection for namespaces or deployments. - Traffic Management: Templates for ServiceProfiles with per-route retries and timeouts, TrafficSplits for canary deployments, and HTTPRoute resources for path- and header-based routing. - Zero-Trust Security: Server and ServerAuthorization policies to enforce mTLS-based access control between services, plus multi-cluster setup for cross-cluster service communication. - Use Case: You want to roll out a new version of a microservice to 10% of traffic. Apply the TrafficSplit template to shift 90/10 weights between stable and canary backends, then monitor per-route success rates with linkerd viz routes. ## Quick Start Ask the AI to generate a Linkerd ServiceProfile with retry budgets and a TrafficSplit for a canary deployment of your Kubernetes service.

Frequently Asked Questions about linkerd-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a canary deployment with Linkerd TrafficSplit?

Create a TrafficSplit resource pointing at your root service with weighted backends, such as 900m for stable and 100m for canary. Linkerd shifts traffic proportionally, and you can adjust weights gradually while monitoring success rates with linkerd viz routes.

How to configure retries and timeouts in Linkerd?

Define a ServiceProfile for your service with routes specifying isRetryable and timeout values per route. Add a retryBudget with retryRatio, minRetriesPerSecond, and ttl to prevent retry storms from overwhelming backends.

Does Linkerd enable mTLS automatically between services?

Yes, Linkerd automatically enables mutual TLS for all meshed pod-to-pod communication once proxies are injected. You can then layer ServerAuthorization policies on top to control which service accounts may reach each server.

Linkerd vs Istio for Kubernetes service mesh?

Linkerd is a lightweight, security-first mesh with automatic mTLS and minimal configuration, while Istio offers a broader feature set at higher operational complexity. This Skill covers Linkerd patterns including ServiceProfiles, TrafficSplits, and authorization policies.

Why is my Linkerd proxy not injecting into pods?

Proxy injection requires the linkerd.io/inject: enabled annotation on the namespace or pod template. Run linkerd check --proxy -n your-namespace to diagnose injection status and verify the control plane is healthy.

Can Linkerd connect services across multiple Kubernetes clusters?

Yes, install the multicluster extension on each cluster, link them with linkerd multicluster link, and label services with mirror.linkerd.io/exported=true. Verify connectivity with linkerd multicluster check and gateways commands.