Zero-Trust mTLS Between Services with Linkerd
Advanced · 60 minutes · 5 tasks, checked automatically · 100 points
In this advanced lab you will build a zero-trust service mesh using Linkerd on a local kind cluster. You will install the Linkerd CLI and control plane, inject the Linkerd data-plane proxy into two microservices, verify that all inter-service traffic is automatically encrypted with mutual TLS (mTLS), and use Linkerd's observability tools to confirm the secure communication channel. By the end of the lab every byte flowing between your workloads will be authenticated and encrypted without any application-level code changes.
What you’ll learn
- Install the Linkerd CLI and deploy the Linkerd control plane (including the viz extension) onto a kind cluster
- Deploy two sample microservices in a dedicated namespace and inject them with the Linkerd sidecar proxy to enable automatic mTLS
- Verify zero-trust mTLS is active between services using Linkerd's built-in observability and traffic inspection tools
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: linkerd, mtls, zero-trust, service-mesh, networking, security, policy, observability, kind
Create a free account to start this lab.
Keep going
- TLS Termination at the Ingress with Kubernetes Secrets
- EndpointSlices: How Services Track Pod Endpoints
- The Gateway API: Routes, Gateways, and GatewayClasses
- Default-Deny NetworkPolicies and Egress Control
- Route HTTP Traffic with an Ingress Controller
- Expose a Service of type LoadBalancer (cloud-provider-kind)