$linuxjunkies
>

linkerd(1)

Linkerd is a service mesh that adds observability, reliability, and security to Kubernetes clusters without requiring application code changes.

UbuntuDebianFedoraArch

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

FlagWhat it does
--kubeconfigpath to the kubeconfig file; defaults to $KUBECONFIG or ~/.kube/config
--contextthe kubeconfig context to use
--namespacethe Kubernetes namespace to operate in; defaults to linkerd
-h, --helpshow help for the command
--verboseenable verbose output and debug logging
--versionshow 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 check

annotate a namespace to enable automatic proxy injection for new pods

kubectl annotate namespace default linkerd.io/inject=enabled

show live traffic metrics (requests, latency, error rates) for deployments

linkerd stat deployment -n default

display service dependencies and traffic relationships for a deployment

linkerd edges deployment -n default

show real-time traffic statistics for pods and services in a namespace

linkerd top -n default

install 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 -

Related commands