Progressive Traffic Shifting and Mirroring with Istio
Expert · 60 minutes · 5 tasks, checked automatically · 100 points
In this expert-level lab you will install Istio on a kind cluster, deploy two versions of a sample application, and use Istio's VirtualService and DestinationRule primitives to implement progressive traffic shifting (canary releases) and traffic mirroring (shadowing). You will start by routing 100% of traffic to v1, gradually shift 20% then 50% then 100% to v2, and finally configure traffic mirroring so live production traffic is silently duplicated to a shadow backend — all without any cloud LoadBalancer.
What you’ll learn
- Install Istio using the minimal profile and enable sidecar injection for the target namespace
- Deploy two versions (v1 and v2) of a sample HTTP application and configure DestinationRule subsets
- Implement progressive traffic shifting from v1 to v2 using VirtualService weight-based routing
- Configure traffic mirroring so 100% of live traffic is shadowed to a mirror deployment for safe testing
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, canary, traffic-mirroring, virtualservice, destinationrule, progressive-delivery, networking
Create a free account to start this lab.
Keep going
- Dual-Stack Networking (IPv4/IPv6) on kind
- Traffic Management with Istio (Sidecar, VirtualService, DestinationRule)
- 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