RPO RTO and backup coverage
What must survive a disaster
A Kubernetes recovery plan protects more than YAML. A fictional bookstore can recreate its Deployment from Git, but that does not bring back yesterday’s orders. A backup is a recoverable copy of a particular state. Disaster recovery (DR) is the coordinated process of returning the service to an agreed usable state after a disruption. Start by listing what cannot simply be rebuilt.
Git manifests → desired configurationDatabase backup → customer order recordsSecret/key recovery → access to protected dataDefine the recovery targets
Recovery point objective (RPO) is the maximum acceptable time gap in recovered data. Recovery time objective (RTO) is the target maximum interruption duration. Agree on these with the service owner before choosing backup frequency or architecture. The observed recovery point and observed duration are measurements, not objectives. In the example the last consistent recovered transaction is at 09:45, the disruption starts at 10:00 and business checks pass at 10:35. The observed gap is 15 minutes and the observed duration is 35 minutes. Both meet a 20-minute RPO and a 45-minute RTO.
09:45 recovered point → 10:00 disruption → 10:35 verified recoveryRPO target 20 min; observed gap 15 min: passRTO target 45 min; observed duration 35 min: passMap the backup layers
Git records reviewed desired state, not necessarily every live API object, generated credential or database row. An etcd snapshot captures the backing store, including persisted API objects, but not the contents of external persistent volumes. Protect the encryption configuration and required keys using a separately governed recovery process. Capture external dependencies such as object stores, DNS settings, approved image digests, certificate trust and managed databases through their own recovery mechanisms. Record versions and restore instructions with each artifact.
Layer Example recovery artifactDesired state Git commit + immutable imagesAPI state etcd snapshot or API object exportApplication data database-native backup / logsExternal dependencies provider-specific backups and key recoveryChoose a consistent data capture
A crash-consistent disk snapshot represents storage at a point in time comparable to an abrupt interruption; database recovery may replay logs. Application consistency requires application-aware coordination, such as a database-native backup or a supported quiesce procedure. A snapshot ReadyToUse condition alone does not demonstrate logical integrity. Multiple independent volume snapshots may describe different instants; use supported coordinated mechanisms and test transaction invariants. A snapshot stored only in the failed storage system may not survive that failure.
Inventory database: verify backup and transaction log chainImage files: verify snapshot or independent object copyCross-store invariant: each order references an existing itemRetention and independent failure domains
High availability (HA) keeps service running through selected failures; replication maintains additional copies but can propagate an unwanted write or deletion. A separately protected, versioned backup preserves earlier recoverable points. Decide how long to retain each point, who can delete it, how keys are recovered and which failure domains it survives. A schedule every 15 minutes is not proof of a 15-minute RPO: failed jobs and delayed replication can leave a much older usable point. Review actual recoverable timestamps and alert on missed capture or retention checks.
Scheduled: every 15 minLast usable point: 09:15Disruption: 10:00Observed gap: 45 min; 20-minute RPO failsPractice and review
Open lab-fixtures/disaster-recovery/objective-cases.json and coverage-cases.json. Calculate the observed gap and duration; then identify missing protection in each backup inventory. Explain which artifact can restore the order records and why a surviving replica is not a historical backup. Next: Restore and disaster rehearsal. The fixtures are synthetic, use minutes on a fixed timeline, and do not test a real backup service.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
RPO RTO and backup coverage — knowledge check
Define RPO and RTO, distinguish backup layers, and design recovery coverage for Kubernetes workloads.
What does a Git repository of Deployment manifests normally restore?
The latest recovered point is 09:45 and disruption starts at 10:00. What is the observed data-loss time gap?
Which artifact normally contains the actual order database records?
Why is a volume snapshot not automatically application-consistent?
A backup is scheduled every 15 minutes but the last usable point is 45 minutes old at disruption. What does a 20-minute RPO assessment show?