linkerd
БесплатноБез исполняемых скриптовНе проверенLinkerd is a lightweight service mesh for Kubernetes that adds automatic mTLS, retries, timeouts, traffic splitting, authorization policy and golden-metric…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Linkerd
Overview
Linkerd is a CNCF service mesh with a small Rust sidecar proxy. Once a workload is meshed, traffic between meshed pods is encrypted with mutual TLS and reported as success rate, request rate and latency.
Release model (as of this writing): the Linkerd project itself publishes only edge releases (edge-26.10.1 is the newest; the numbers are year.month.count). Numbered releases such as 2.20 are cut from edge by vendors (Buoyant Enterprise for Linkerd). The docs and examples below use the edge CLI and charts. Pick one release line and keep the CLI, control plane and extensions on matching versions (linkerd version shows client and server).
Configuration has moved to Gateway API types: retries, timeouts and traffic splits use HTTPRoute; the old SMI TrafficSplit is no longer developed and ServiceProfile is legacy.
Instructions
Install
Prerequisites: the Gateway API CRDs (check with kubectl get crd httproutes.gateway.networking.k8s.io; the Linkerd 2.20 docs list 1.2.1 to 1.5.1 as compatible):
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.5.1/standard-install.yaml
Install the CLI by taking the linkerd2-cli-edge-<version>-<os>-<arch> binary for your platform from the GitHub releases page of linkerd/linkerd2 (the newest edge), or with Homebrew (brew install linkerd, which currently installs 2.20, the build matching edge-26.6.3; its linkerd install deploys that version, not the newest edge). Then:
linkerd check --pre # is the cluster ready?
linkerd install --crds | kubectl apply -f - # CRDs first
linkerd install | kubectl apply -f - # control plane; trust anchor and issuer certificates are generated
linkerd check
linkerd viz install | kubectl apply -f - # optional metrics stack, tap and dashboard
linkerd viz check
The generated certificates are fine for trying Linkerd. For production use Helm with your own certificates (the CLI --ha flag and the chart's values-ha.yaml give high availability):
helm repo add linkerd-edge https://helm.linkerd.io/edge
helm install linkerd-crds linkerd-edge/linkerd-crds -n linkerd --create-namespace
helm install linkerd-control-plane linkerd-edge/linkerd-control-plane -n linkerd \
--set-file identityTrustAnchorsPEM=ca.crt \
--set-file identity.issuer.tls.crtPEM=issuer.crt \
--set-file identity.issuer.tls.keyPEM=issuer.key
Rotate the issuer certificate before it expires (cert-manager can automate it). Do not run linkerd install twice for the same cluster; use linkerd upgrade | kubectl apply -f - or helm upgrade.
Mesh workloads
kubectl annotate namespace shop linkerd.io/inject=enabled # new pods in the namespace get the proxy
kubectl rollout restart deploy -n shop # existing pods need a restart
kubectl get deploy web-app -n shop -o yaml | linkerd inject - | kubectl apply -f - # one workload
linkerd -n shop check --proxy
The annotation linkerd.io/inject: enabled can also sit in a Deployment's pod template metadata.
Retries and timeouts (annotations)
Set them on a Service (all traffic to it) or on an HTTPRoute whose parent is that Service. The calling pod must be meshed, since both run in the client proxy.
apiVersion: v1
kind: Service
metadata:
name: api-service
namespace: shop
annotations:
retry.linkerd.io/http: 5xx
retry.linkerd.io/limit: "2"
retry.linkerd.io/timeout: 1s
timeout.linkerd.io/request: 5s
spec:
selector:
app: api-service
ports:
- port: 8080
Retry only idempotent requests; bodies over 64 KiB are not retried. Retries and timeouts do not work for headless services, and are ignored if a ServiceProfile exists for the Service.
Traffic splitting (canary)
apiVersion: policy.linkerd.io/v1beta2
kind: HTTPRoute
metadata:
name: web-app-canary
namespace: shop
spec:
parentRefs:
- name: web-app
kind: Service
group: core
port: 8080
rules:
- backendRefs:
- name: web-app
port: 8080
weight: 90
- name: web-app-canary
port: 8080
weight: 10
web-app and web-app-canary are ordinary Services selecting the stable and canary pods. Meshed clients calling web-app are split 90/10; change the weights to shift traffic, and verify with linkerd viz stat -n shop --from deploy/frontend deploy.
Authorization policy
A Server describes a pod port; once one exists, only traffic allowed by a policy reaches it (kubelet probes are authorized automatically until an HTTPRoute is attached to the Server; then authorize them explicitly). Authorize callers by mesh identity:
apiVersion: policy.linkerd.io/v1beta3
kind: Server
metadata:
name: api-server
namespace: shop
spec:
podSelector:
matchLabels:
app: api-service
port: 8080
proxyProtocol: HTTP/1
---
apiVersion: policy
Установить linkerd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл linkerd?
Linkerd is a lightweight service mesh for Kubernetes that adds automatic mTLS, retries, timeouts, traffic splitting, authorization policy and golden-metric observability without changing application code. Use when installing Linkerd, meshing a namespace, running a canary rollout, restricting which services can call each other, or linking clusters.
Как установить скилл linkerd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл linkerd запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic