Traffic Management with Istio (Sidecar, VirtualService, DestinationRule)
Expert · 30 minutes · 5 tasks, checked automatically · 100 points
In this expert-level lab you will install Istio on a local kind cluster, inject Envoy sidecar proxies into application pods, and then use Istio's traffic-management primitives — VirtualService and DestinationRule — to perform weighted canary routing between two versions of a sample service. You will observe how the service mesh intercepts pod-to-pod traffic and enforces the routing rules you declare, all without touching application code.
What you’ll learn
- Install Istio using the minimal profile and verify the control-plane components are healthy
- Deploy two versions of a sample HTTP service with Istio sidecar injection enabled
- Configure a VirtualService and DestinationRule to perform weighted 80/20 canary traffic splitting between v1 and v2
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: istio, service-mesh, traffic-management, virtualservice, destinationrule, sidecar, canary, networking, envoy, kubernetes
Create a free account to start this lab.
Keep going
- Dual-Stack Networking (IPv4/IPv6) on kind
- Progressive Traffic Shifting and Mirroring with Istio
- eBPF Networking and Flow Observability with Cilium + Hubble
- TLS Termination at the Ingress with Kubernetes Secrets
- EndpointSlices: How Services Track Pod Endpoints
- The Gateway API: Routes, Gateways, and GatewayClasses