linkerd(1)
Linkerd is a service mesh that adds observability, reliability, and security to Kubernetes clusters without requiring application code changes.
Synopsis
linkerd [COMMAND] [FLAGS] [OPTIONS]Description
Linkerd is a lightweight service mesh for Kubernetes that automatically handles traffic management, observability, and security for microservices. It injects sidecar proxies into pods to intercept and manage all network communication between services.
The linkerd CLI is used to install, configure, and manage the service mesh, check cluster health, and view observability data like traffic metrics and service dependencies.
Common options
| Flag | What it does |
|---|---|
--kubeconfig | path to the kubeconfig file; defaults to $KUBECONFIG or ~/.kube/config |
--context | the kubeconfig context to use |
--namespace | the Kubernetes namespace to operate in; defaults to linkerd |
-h, --help | show help for the command |
--verbose | enable verbose output and debug logging |
--version | show the Linkerd version and exit |
Examples
install Linkerd control plane into the Kubernetes cluster
linkerd install | kubectl apply -f -run diagnostic checks to verify the Linkerd installation is healthy
linkerd checkannotate a namespace to enable automatic proxy injection for new pods
kubectl annotate namespace default linkerd.io/inject=enabledshow live traffic metrics (requests, latency, error rates) for deployments
linkerd stat deployment -n defaultdisplay service dependencies and traffic relationships for a deployment
linkerd edges deployment -n defaultshow real-time traffic statistics for pods and services in a namespace
linkerd top -n defaultinstall the Linkerd Viz extension for web-based dashboards and metrics
linkerd viz install | kubectl apply -f -upgrade the Linkerd control plane to a newer version
linkerd upgrade | kubectl apply -f -