Incident response
Establish scope and assign responsibilities
An incident is a disruption requiring coordinated response. In this fictional catalog outage, the user-facing error ratio rises after a release. Declare the affected service and time window; name an incident coordinator, technical responder and communications owner, combining roles only when appropriate. Keep a timestamped record of observations, hypotheses and decisions. An alert is not a diagnosis. Determine impact using the SLI, not only the number of healthy Nodes. Use the incident timeline fixture; no real environment or credentials are required.
10:00 UTC release begins10:04 UTC customer errors rise10:06 UTC incident declaredScope: catalog reads in bookstore-demoCollect evidence before changing resources
Compare the rollout revision, Pod conditions, application logs and dependency signals with the SLI. The synthetic incident contains ready Pods but a slow inventory dependency after a change to the client timeout. One plausible hypothesis is an incorrect timeout; another is a dependency slowdown independent of the release. Test each against timestamps and traces. Use read-only, scoped commands only in an explicitly authorized disposable lab with a separate kubeconfig. Never retrieve Secrets or publish unredacted logs. The following commands are illustrations; the context and objects are not provisioned here.
kubectl --kubeconfig ./lab.kubeconfig --context reliability-lab -n bookstore-demo get deploy catalogkubectl --kubeconfig ./lab.kubeconfig --context reliability-lab -n bookstore-demo rollout history deploy/catalogkubectl --kubeconfig ./lab.kubeconfig --context reliability-lab -n bookstore-demo get pods -l app=catalogMitigate with a reviewed reversible action
Choose an action that addresses the leading hypothesis with the smallest acceptable blast radius. If revision comparison and traces support a timeout regression, and the earlier image and configuration are compatible with the database, an authorized rollback may be justified. If inventory itself is overloaded, lowering retry pressure may be more helpful. Record the expected effect, approval, rollback or stop condition, and risk. Do not repeatedly delete Pods or bypass policies. This lesson asks learners to propose a change, not run it.
Hypothesis: timeout regressionProposed action: review rollback to known-good revisionPreconditions: compatibility, authorization, scoped changeStop if errors rise or dependency saturation worsensVerify recovery from the customer boundary
A successful rollout or green Pod count is not sufficient recovery evidence. Confirm eligible request volume, availability, latency, dependency saturation, and telemetry completeness. In this lab the local recovery gate requires three consecutive five-minute windows with at least 1,000 requests, at least 99.9% successes and at least 95% within 300 ms. These are illustrative operational thresholds, distinct from the rolling 30-day SLO. If data are missing, the gate is inconclusive; if any threshold fails, keep investigating. The recent windows cannot prove that the long-term error budget has recovered.
Window Requests Good <=300ms10:15 2000 1999 195010:20 2000 1999 194010:25 2000 2000 1960All three satisfy the example recovery gateWrite a learning-focused postmortem
After service recovery, record customer impact, duration, contributing conditions, detection gaps, mitigation and remaining uncertainty. A blameless review asks what made the failure possible and which system changes could reduce recurrence, not which individual to punish. Assign actions with an owner, deadline and observable completion criterion. For this incident, add a timeout compatibility test, review a retry budget and rehearse the recovery gate. Separate measured facts from hypotheses; do not claim a root cause that the fixture cannot establish. Use incident-timeline.json and recovery-cases.json to complete the runbook.
Action: add deadline and retry-budget regression testOwner: fictional catalog teamDone when: timeout case fails safely and CI checks itReview: next reliability exerciseFurther reading and practice
Offline practice: lab-fixtures/sre-reliability/README.md. All data are synthetic. PromQL and kubectl snippets are static and not executed. Official sources are listed in the chapter review.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Incident response — knowledge check
Build an evidence-led Kubernetes incident runbook and verify service recovery.
What should establish the scope of a catalog incident?
A release coincides with errors. What is justified?
What must be checked before proposing rollback?
All Pods are Ready but customer errors remain high. Is recovery verified?
What makes a postmortem action useful?