Core Track Guardrails-first chapter in core learning path.

Estimated Time

  • Reading: 30 min
  • Lab: 35 min
  • Quiz: 5 min

Prerequisites

What You Will Produce

On your own kind cluster: one chaos experiment done the way an experiment is done - the steady state measured through the Service, a hypothesis written before the fault, the only backend pod deleted, the outage measured in seconds by an independent probe and compared with the hypothesis. Then one Chaos Monkey run, proven unable to touch the database, and a full stop - not just a suspended schedule.

Chapter 13: Controlled Chaos

Learning Objectives

By the end of this chapter, you will be able to:

  • Run a chaos experiment as an experiment: steady state, hypothesis, one fault, measurement, comparison
  • Measure what users get during a fault with an independent probe through the Service - not with kubectl get pods
  • Say what a pod deletion tests and what it does not (PodDisruptionBudgets and autoscaling are not among them)
  • Bound a chaos tool with limits it cannot step over - RBAC, an admission policy, a time window - and stop it completely

Recall Check

Before continuing, quickly recall:

  • What creates the replacement when a pod of a Deployment disappears - and what does a PodDisruptionBudget protect against? (Chapter 09)
  • Why does a short burst of failures not fire BackendErrorBudgetBurnFast? (Chapter 11)
  • What proves a restore - Ready, or something else? (Chapter 12)

If you can’t answer these, revisit the corresponding chapter before proceeding.

Context

Chapters 09 to 12 built ways for the platform to survive failure: replicas and disruption budgets, alerts that reach a person, restores you can prove. None of them has been seen working under a real fault. The first time a failure mode appears should not be at 02:00 in production.

So this chapter breaks things on purpose - small, in develop, with a way to stop. But breaking things is not the experiment. The experiment is the prediction: write down what you expect users to see, cause one fault, measure what they actually saw, and compare. A fault without a hypothesis and a measurement is a spectacle; it proves nothing, and teaches nothing.

The same holds for the tool. A chaos tool is code with permission to destroy. Its limits must be ones it cannot step over - not lines in its own script.

Work through each lesson section; the chapter video, once it is published, gives the concept overview.

An Experiment, Not a Spectacle

Diagram: steady state probe through the Service; hypothesis written first; one fault in develop; measure same probe; as predicted?; yes; confidence, scorecard; no; finding: hardening action; stop condition + full stop

Detailed Lessons

Hands-On Materials

Labs, quizzes and runbooks for this chapter are free - sign in with your email, Google or GitHub to open them.

  • Game Day Scorecard Free · sign in
  • Lab: An Experiment, Not a Spectacle Free · sign in
  • Quiz: Chapter 13 (Controlled Chaos) Free · sign in
  • Runbook: Game Day Free · sign in