# Linkerd Patterns

Implement Linkerd service mesh patterns for lightweight, security-focused service mesh...

- Repository: https://github.com/wshobson/agents (42077 stars)
- Category: Security
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add wshobson/agents --skill linkerd-patterns -g -a claude-code -y`
Codex: `npx skills add wshobson/agents --skill linkerd-patterns -g -a codex -y`
Cursor: `npx skills add wshobson/agents --skill linkerd-patterns -g -a cursor -y`
Gemini CLI: `npx skills add wshobson/agents --skill linkerd-patterns -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add wshobson/agents`

## Description

Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Linkerd Patterns

Production patterns for Linkerd service mesh - the lightweight, security-first service mesh for Kubernetes.

## When to Use This Skill

- Setting up a lightweight service mesh
- Implementing automatic mTLS
- Configuring traffic splits for canary deployments
- Setting up service profiles for per-route metrics
- Implementing retries and timeouts
- Multi-cluster service mesh

## Core Concepts

### 1. Linkerd Architecture

```
┌─────────────────────────────────────────────┐
│                Control Plane                 │
│  ┌─────────┐ ┌──────────┐ ┌──────────────┐ │
│  │ destiny │ │ identity │ │ proxy-inject │ │
│  └─────────┘ └──────────┘ └──────────────┘ │
└─────────────────────────────────────────────┘
                      │
┌─────────────────────────────────────────────┐
│                 Data Plane                   │
│  ┌─────┐    ┌─────┐    ┌─────┐             │
│  │proxy│────│proxy│────│proxy│             │
│  └─────┘    └─────┘    └─────┘             │
│     │           │           │               │
│  ┌──┴──┐    ┌──┴──┐    ┌──┴──┐            │
│  │ app │    │ app │    │ app │            │
│  └─────┘    └─────┘    └─────┘            │
└─────────────────────────────────────────────┘
```

### 2. Key Resources

| Resource                | Purpose                              |
| ----------------------- | ------------------------------------ |
| **ServiceProfile**      | Per-route metrics, retries, timeouts |
| **TrafficSplit**        | Canary deployments, A/B testing      |
| **Server**              | Define server-side policies          |
| **ServerAuthorization** | Access control policies              |

## Templates

### Template 1: Mesh Installation

Use a CLI version compatible with the target cluster. The example uses Homebrew;
for other systems, follow the [official installation guide](https://linkerd.io/docs/getting-started/).

```bash
# Install the CLI with Homebrew
brew install linkerd
linkerd version

The rest: https://github.com/wshobson/agents/blob/HEAD/plugins/cloud-infrastructure/skills/linkerd-patterns/SKILL.md
