Inject Faults and Test Resilience with Chaos Mesh
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced lab you will install Chaos Mesh on a kind cluster, deploy a sample microservice application, and then use Chaos Mesh's custom resources to inject real faults — network delays, pod kills, and CPU stress — to validate how your workloads behave under adverse conditions. You will observe the effects, verify recovery, and tune resilience settings accordingly. This lab teaches the foundational chaos engineering workflow: steady-state hypothesis → fault injection → observation → recovery verification.
What you’ll learn
- Install Chaos Mesh via Helm and verify all control-plane components are healthy
- Deploy a resilient sample application and confirm its steady-state baseline
- Inject network latency, pod-kill, and CPU-stress faults using Chaos Mesh CRs and observe application behaviour
- Verify automatic recovery after each fault experiment and understand how to scope blast radius with label selectors
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: chaos-engineering, chaos-mesh, resilience, fault-injection, network-chaos, pod-chaos, stress-testing, kubernetes, helm, troubleshooting
Create a free account to start this lab.
Keep going
- Debug a Broken Cluster: CrashLoopBackOff, ImagePullBackOff, and Pending Pods
- Troubleshoot Failed PVC Binding and Volume Mounts
- Recover a Stuck Namespace Termination (Finalizers)
- Debug a Failing Admission Webhook Blocking All Deployments
- Diagnose Pending Pods: Scheduling and Insufficient Resources
- Fix CrashLoopBackOff: Logs, Exit Codes, and Probes