Troubleshooting portfolio
Build a reproducible evidence record
A useful troubleshooting portfolio records the symptom, affected scope, time, desired state, observed state, competing hypotheses, one discriminating test, approved correction and measured outcome. The fictional bookstore cases in this chapter deliberately expose one benign fault each; a real incident can contain several. Capture observations before changing anything. Use stable object identities, redact sensitive values, and retain only the minimum evidence required. Do not execute commands against production from this exercise.
Case: catalog rollout stalledObservation: Progressing=False; reason=ProgressDeadlineExceededHypothesis A: image unavailableHypothesis B: readiness path incorrectDiscriminator: waiting reason plus probe event and application contractVerify the change at more than one layer
A rollout timeout from the client and a Deployment reporting ProgressDeadlineExceeded are different signals. Inspect Deployment conditions, observed generation, new ReplicaSet and Pod events. A progress deadline reports failure to progress; it does not automatically undo the rollout. Compare the intended revision with available replicas and actual client behavior. In a reviewed correction, adjust the single faulty setting in the declarative source, review the diff and follow the authorized rollout procedure. Confirm the desired generation was observed and the expected revision is available.
kubectl --kubeconfig ./lab.kubeconfig --context bm-lab -n bm-troubleshoot rollout status deployment/catalog --timeout=60skubectl --kubeconfig ./lab.kubeconfig --context bm-lab -n bm-troubleshoot get deployment catalog -o yamlkubectl --kubeconfig ./lab.kubeconfig --context bm-lab -n bm-troubleshoot get replicasets -l app=catalogUse explicit recovery gates
For the offline case require all three desired replicas updated and available, at least three ready endpoints, a successful representative request, the expected response body and no additional restarts during a defined five-minute observation period. These are illustrative thresholds, not a general SLO. A successful request alone can hit an old replica; a completed rollout alone cannot prove correct results. Missing observations mean recovery is not verified. If the gates fail, preserve evidence and follow the preapproved rollback or mitigation plan, taking external data compatibility into account.
Before: updated=3, available=1, ready endpoints=1, HTTP=503After: updated=3, available=3, ready endpoints=3, HTTP=200, body=expected, restart delta=0 over 5 minDecision: offline recovery gates satisfiedComplete four diagnostic cases
Use the portfolio fixtures to compare an incorrect image digest, a selector mismatch, an incompatible PVC class and a readiness probe path typo. For each case choose one discriminating observation before proposing a fix; then explain why a tempting alternative is not supported. Write a short incident record with a rollback boundary. The provided answers are for self-review after attempting the task. Passing the offline validator demonstrates consistency of the toy classification rules and gates, not the actual Kubernetes control plane, storage backend or network.
Deliverable: symptom -> hypothesis -> evidence -> scoped correction -> verification -> remaining uncertaintyCheck Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Troubleshooting portfolio — knowledge check
Form competing hypotheses and verify corrections
A rollout reports ProgressDeadlineExceeded. Does Kubernetes automatically undo it?
Why record Pod UID and timestamp?
A rollout completes but the expected HTTP body is wrong. Recovery decision?
One recovery measurement is missing. How classify it?
Which portfolio entry best supports learning?