Lab & Completion
What You Will Produce
On your own kind cluster, one incident from the first signal to a written postmortem. You put user traffic on develop, then release a configuration change through a pull request that makes three in ten requests fail while every pod stays Ready. You see it in the error ratio before the alert fires, declare a severity from the impact, and keep a timeline while BackendErrorBudgetBurnFast fires and the Guardian opens its incident. You try a restart and prove it does not help, find the change, revert it the way it came in, and prove recovery on the users’ path - then write the postmortem while the alert and the incident close by themselves.
Before You Start
The baseline from Chapter 00 must be clean:
flux --context kind-sre-control-plane get kustomizations -A # every row READY=True and SUSPENDED=False
kubectl --context kind-sre-control-plane get pods -A --no-headers | grep -vE 'Running|Completed' # prints nothing
make smoke-test # Fail: 0
You need three terminals, curl, jq and gh signed in to GitHub. The release and its revert are pull requests in your fork, merged by you (Chapter 05). Your fork must be up to date: if flux/apps/backend/develop/kustomization.yaml does not set CHAOS_ENABLED, or the backend image in it is older than build 1791221178 (the number at the end of the tag, develop-v0.0.0-<commit>-<build time> - a commit hash has no order), open your fork on GitHub, click Sync fork → Update branch, then git switch main && git pull, and let Flux catch up.
The Lab in Three Parts
- A. Verify - the baseline, that Flux applies your fork’s
main, and what users get before anything happens. - B. Break & Fix - a release through a pull request; detect and declare while the alert is on its way; a restart that does not help; the change found and reverted; recovery proven on the users’ path.
- C. Rollback & Cleanup - the postmortem while the alert and the Guardian’s incident catch up, then the baseline.
Done When
- Flux’s source was your fork, and the error ratio showed no errors before the release (A2-A3)
- your prediction was written before the release, with
T0after it (B1-B2) - the timeline has the first signal, a severity declared from the impact - and why it was not Sev1 - and a first update (B3)
- the restart was tried, measured and written down as not helping (B4)
- the revert was decided on evidence - the release minutes before the first failure - and went through a pull request (B5-B6)
- recovery was proven on the users’ path - 50 of 50 requests, a register and a login - while the alert was still firing (B7)
- the postmortem reads impact → evidence → decision → action → verified recovery → follow-up, with at least one action that has an owner, a date and a check (C1)
- the alert’s and the Guardian’s closing times are in it, and the baseline is clean (C2-C3)
Knowledge Check
Before finishing this chapter - and the core track - complete the Quiz.
After the Core Track
With this chapter you have the whole core: a platform built from code, changed only through Git, with guards you proved - a pull request’s checks before a merge (Chapter 05), network policies between pods (Chapter 06), Pod Security at admission (Chapter 07) - observed on what users get, restorable, tested by faults on purpose, assisted by an AI that only proposes - and run by a person through an incident. The advanced track builds on exactly that: admission policies that report what a review would miss, and - once promoted from Audit to Enforce - refuse it (Chapter 16), the supply chain behind every image (Chapter 17), rollbacks that involve data (Chapter 18), releases that roll out gradually and roll back by themselves (Chapter 19) - and the platform kept over time: planned platform upgrades (Chapter 20), its credentials and access with an owner and an end (Chapter 21), and the whole cluster rebuilt with its data after it is lost (Chapter 22).