10 Kubernetes Disaster Recovery Tools You Must Know
10 Kubernetes disaster recovery tools: etcd snapshots, Velero, GitOps, Cluster API, Longhorn, Ceph RBD mirroring, CloudNativePG, Portworx, k8gb, Litmus.
Kubernetes disaster recovery tools help you bring workloads and data back after losing a cluster, a zone or a region. The core set is etcd snapshots for the control plane, Velero for resource and volume restores, GitOps tools to rebuild from Git, storage replication such as Longhorn DR volumes or Ceph RBD mirroring, k8gb for DNS failover, and chaos tools to rehearse the whole plan.
Backup and disaster recovery overlap but are not the same job. A backup tool copies data somewhere safe. A disaster recovery plan decides how fast you can run again (RTO), how much data you can lose (RPO), and which steps move traffic to a working cluster. Our 12 Kubernetes backup tools for enterprise data compares backup products such as Kasten, Trilio and the cloud backup services. This article covers the tools that turn those backups into a working recovery. For how etcd and the control plane fit together, see the Kubernetes architecture components.
Key takeaways
- Set RTO and RPO per application first. They decide whether nightly backups are enough or you need replication and a warm standby cluster.
- Self-managed clusters need etcd snapshots. Take them with
etcdctl snapshot saveand restore withetcdutl snapshot restore; the older etcdctl restore subcommand is deprecated. - Velero restores namespaces and volumes into a new cluster. Set the backup storage location to read-only during a restore so nothing overwrites your backups.
- If every manifest lives in Git, Argo CD or Flux can rebuild stateless workloads on a fresh cluster in minutes. Data is the hard part.
- Storage-level replication (Longhorn DR volumes, Rook Ceph RBD mirroring, Portworx DR, CloudNativePG replica clusters) lowers RPO for stateful apps.
- k8gb moves users between clusters through DNS, and LitmusChaos lets you rehearse failures before they happen.
RTO, RPO and the four DR patterns
RTO (recovery time objective) is how long a service may stay down. RPO (recovery point objective) is how much recent data you can afford to lose. A team that accepts a 24-hour RPO can rely on nightly backups. A payments service with an RPO near zero needs synchronous replication. Most organisations mix patterns by application tier.
| Pattern | How it works | Typical RTO | Typical RPO | Tools in this list |
|---|---|---|---|---|
| Backup and restore | Rebuild a cluster, restore from object storage | Hours | Last backup | etcd snapshots, Velero, Cluster API |
| Pilot light | Second cluster exists, workloads scaled to zero or minimal | Tens of minutes | Last replica sync | GitOps, Longhorn DR volumes, Velero |
| Warm standby | Second cluster runs a reduced copy with replicated data | Minutes | Minutes | RBD mirroring, CloudNativePG, Portworx async DR |
| Active-active | Both clusters serve traffic | Near zero | Near zero for synchronous data | k8gb, Portworx Metro DR, app-level replication |
The RTO and RPO numbers above are illustrative ranges, not guarantees. Measure your own in drills. Each step up the table costs more, because you pay for a second cluster, cross-region data transfer and the engineering time to keep both sides in sync. Reserve warm standby and active-active for the services whose downtime actually costs the business, and let internal tools and batch jobs use backup and restore.
The 10 Kubernetes disaster recovery tools
| # | Tool | What it recovers | DR role | Licence |
|---|---|---|---|---|
| 1 | etcdctl and etcdutl | Entire cluster state (self-managed) | Control plane restore | Open source |
| 2 | Velero | Namespaces, resources, volumes | Restore into another cluster | Open source |
| 3 | Argo CD or Flux | Manifests and Helm releases from Git | Rebuild stateless workloads | Open source, CNCF graduated |
| 4 | Cluster API | The cluster itself | Recreate clusters declaratively | Open source, Kubernetes SIG |
| 5 | Longhorn DR volumes | Block volumes | Standby volumes in a second cluster | Open source, CNCF |
| 6 | Rook Ceph RBD mirroring | Ceph block volumes | Asynchronous cross-cluster replication | Open source, CNCF graduated |
| 7 | CloudNativePG replica clusters | PostgreSQL databases | Cross-cluster database standby | Open source |
| 8 | Portworx disaster recovery | Applications and volumes | Metro (sync) and async DR | Commercial |
| 9 | k8gb | User traffic | DNS-based failover between clusters | Open source, CNCF incubating |
| 10 | LitmusChaos | Confidence in the plan | Failure injection and DR drills | Open source, CNCF incubating |
Control plane and cluster recovery
1. etcdctl and etcdutl
etcd holds every Kubernetes object. On a self-managed cluster (kubeadm, bare metal), losing etcd without a snapshot means rebuilding everything by hand. Managed services such as EKS, GKE and AKS run etcd for you and do not give you access, so this tool applies only to clusters you operate. The Kubernetes etcd administration guide covers snapshots; etcdctl takes them over the network and etcdutl works on snapshot files offline.
# take a snapshot (paths are typical for kubeadm)
ETCDCTL_API=3 etcdctl snapshot save /backup/etcd-$(date +%F).db \
--endpoints=https://127.0.0.1:2379 \
--cacert=/etc/kubernetes/pki/etcd/ca.crt \
--cert=/etc/kubernetes/pki/etcd/server.crt \
--key=/etc/kubernetes/pki/etcd/server.key
# check it
etcdutl snapshot status /backup/etcd-2026-11-07.db --write-out=table
# restore into a new data directory, then point etcd at it
etcdutl snapshot restore /backup/etcd-2026-11-07.db --data-dir /var/lib/etcd-restored
Copy snapshots off the node to object storage, encrypt them (they contain Secrets), and keep the PKI files somewhere safe too. An etcd restore rolls the whole cluster back to the snapshot time, which is why most teams use it only when the control plane itself is lost.
2. Velero
Velero backs up Kubernetes resources and persistent volumes to object storage and restores them into the same or a different cluster. Our backup tools article covers its features; for DR, the documented procedure is what matters:
# daily backups at 07:00, kept for the default 30 days
velero schedule create daily-prod --schedule "0 7 * * *"
# during a disaster, on the recovery cluster: stop new backups overwriting old ones
kubectl patch backupstoragelocation default --namespace velero \
--type merge --patch '{"spec":{"accessMode":"ReadOnly"}}'
# restore the latest backup
velero restore create --from-backup daily-prod-20261107070000
# when finished, make the location writable again
kubectl patch backupstoragelocation default --namespace velero \
--type merge --patch '{"spec":{"accessMode":"ReadWrite"}}'
Put the backup bucket in a different region or account from the clusters it protects. A bucket in the same failed region is no help. Velero's RPO is the schedule interval, so for tighter RPOs pair it with one of the replication tools below.
3. Argo CD or Flux
If every Deployment, Service, Helm release and policy lives in Git, a new cluster can pull the whole desired state on first sync. That turns "restore the cluster" into "bootstrap Argo CD or Flux and wait". GitOps does not restore data, Secrets stored only in the cluster, or anything changed by hand with kubectl, so close those gaps with sealed or external secrets and a no-manual-changes rule. Our GitOps tools for Kubernetes post compares the options.
4. Cluster API
Cluster API, a SIG Cluster Lifecycle project, defines clusters, machines and their infrastructure as Kubernetes resources. Creating, scaling, upgrading and deleting clusters becomes declarative. In a DR plan it means the recovery cluster is a set of manifests rather than a runbook of console clicks, so you can create it in another region on demand. Terraform or your cloud's own templates fill the same role for teams that do not use Cluster API.
Storage and data replication
Stateless workloads are easy to move. Data is what sets your real RPO. The tools below replicate volumes or databases to a second cluster so you are not limited to the last nightly backup. For background on storage backends, read Kubernetes storage options explained.
5. Longhorn disaster recovery volumes
Longhorn DR volumes are standby copies of a volume in a second cluster, built from the primary's backups. Both clusters share one backup target, such as S3-compatible storage or NFS. The DR volume polls the target and applies newer incremental backups, so its freshness, and your RPO, depends on how often the source volume is backed up. During failover you activate the volume (manually, through the UI or by patching Standby to false), and it becomes attachable to workloads. Until then you cannot snapshot it or create PVCs from it.
6. Rook Ceph RBD mirroring
With Ceph managed by Rook, RBD mirroring replicates block images asynchronously between two Ceph clusters in journal or snapshot mode. You enable mirroring on a CephBlockPool, run the rbd-mirror daemon through a CephRBDMirror resource, and use the CSI-Addons VolumeReplication resources to mark a volume primary or secondary. Pool names must match on both sides. Back up the PVC and PV objects separately, because mirroring moves the data, not the Kubernetes objects that point to it.
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: replicapool
namespace: rook-ceph
spec:
replicated:
size: 3
mirroring:
enabled: true
mode: image
7. CloudNativePG replica clusters
For PostgreSQL, database-native replication beats volume copying because the database knows which writes are committed. CloudNativePG supports replica clusters: a full PostgreSQL cluster in another Kubernetes cluster that follows the primary through streaming replication or WAL archives. In a disaster you promote the replica cluster to primary, and the docs describe a distributed topology where the former primary can be demoted later. Other databases have similar operators; the principle of using the database's own replication carries over.
8. Portworx disaster recovery
Portworx documents two main DR modes. Synchronous (Metro) DR stretches one Portworx cluster across two sites with under 10 ms latency, with an RPO of zero and an RTO under 60 seconds. Asynchronous DR runs a Portworx cluster on each Kubernetes cluster and moves applications and volumes on migration schedules, with a documented 15-minute RPO. A third option integrates with Red Hat Advanced Cluster Management. It is a commercial product aimed at enterprises that want storage and DR from one vendor.
Traffic failover and testing
9. k8gb
Recovering a cluster does not help if users still resolve DNS to the dead one. k8gb, a CNCF incubating project, is a global load balancer that runs as an operator in each cluster with no central management cluster. A Gslb resource points at an Ingress or Service and sets a strategy such as failover with a primary geo tag. k8gb uses Pod health to decide which cluster's address to hand out through DNS providers such as Route 53, Azure DNS or Infoblox. Cloud DNS health checks or a global load balancer can do the same job if you prefer managed services.
apiVersion: k8gb.absa.oss/v1beta1
kind: Gslb
metadata:
name: shop
spec:
resourceRef:
apiVersion: networking.k8s.io/v1
kind: Ingress
matchLabels:
app: shop
strategy:
type: failover
primaryGeoTag: eu-west-1
10. LitmusChaos
A DR plan nobody has tested is a guess. LitmusChaos, a CNCF incubating project, runs controlled fault experiments from its ChaosHub, such as killing Pods, draining nodes or adding network latency, and uses probes to check whether the system stays within its steady state. Use it in staging game days to prove that failover works, that alerts fire, and that the runbook steps are correct. Chaos Mesh is a similar CNCF option.
Common Kubernetes DR mistakes
Most failed recoveries trace back to a small set of gaps that only show up during a real incident or a drill.
- Backups in the same failure domain. A bucket, snapshot or registry in the region that went down cannot help you recover. Replicate backups to another region or account, and make them immutable where the storage supports it.
- Missing dependencies outside the cluster. Container images, DNS zones, TLS certificates, cloud IAM roles, load balancer settings and external databases all have to exist in the recovery location. Mirror images to a registry in the DR region and keep IAM and DNS in infrastructure as code.
- Secrets that only live in the cluster. If a Secret was created by hand and never stored elsewhere, a GitOps rebuild will not have it, and an etcd snapshot is useless on a different cluster. Store secrets in an external secret manager or as encrypted manifests in Git.
- Version drift between clusters. A recovery cluster on a different Kubernetes minor version, CRD version or storage class name can reject restored manifests. Keep the standby cluster on the same versions and test restores against it.
- Restoring everything at once. A full-cluster restore can start hundreds of Pods together, overload storage and trigger cascading failures. Restore by tier: platform add-ons first, then data services, then applications.
- No owner for the decision to fail over. Automated DNS failover is fast, but someone still has to decide when to fail back and how to reconcile data written in both places. Write that decision path into the runbook.
- Untested RTO. Restore times grow with data size. A restore that took ten minutes last year may take two hours now. Time each drill and compare it with the target.
A minimal Kubernetes DR runbook
- Classify applications by RTO and RPO and pick a pattern for each tier.
- Keep all manifests, Helm values and policies in Git, and keep secrets in an external secret store or encrypted in Git.
- Schedule etcd snapshots (self-managed clusters) and Velero backups to object storage in another region or account.
- Replicate stateful data with the database's own replication or a storage replication feature where backups alone miss the RPO.
- Define the recovery cluster as code with Cluster API, Terraform or your cloud's templates.
- Automate traffic failover with k8gb or cloud DNS health checks, and lower DNS TTLs ahead of time.
- Run a restore drill at least quarterly, time it, and update the runbook with what broke.
For the backup side of this runbook, our Kubernetes backup strategies post covers schedules, retention and immutability. Teams running several clusters should also read Kubernetes multi-cluster management solutions.
Learn Kubernetes recovery hands-on
Backing up and restoring etcd is part of the CKA cluster maintenance objectives, and it is a common practical task in interviews. Our CKA training, in Kharadi, Pune and live online across India, includes etcd snapshot and restore labs on kubeadm clusters along with Velero restores.
Frequently asked questions
What is the difference between Kubernetes backup and disaster recovery?
Backup copies cluster resources and data to a safe place. Disaster recovery is the full plan to run again after a major failure: where you restore, how fast (RTO), how much data you can lose (RPO), and how traffic moves to the recovered cluster.
Do I need etcd backups on EKS, GKE or AKS?
No. The provider runs and protects etcd on managed clusters, and you cannot access it. You still need application-level backups with a tool such as Velero, plus your manifests in Git.
Which command restores an etcd snapshot?
Use etcdutl snapshot restore with a new data directory, then start etcd pointing at it. The etcdctl snapshot restore subcommand is deprecated in favour of etcdutl. etcdctl snapshot save is still used to take snapshots.
Can Velero restore to a different cluster?
Yes. Install Velero on the recovery cluster with access to the same backup storage location, set that location to read-only, and run velero restore create from the backup you need.
Is Velero enough for disaster recovery?
For many teams with RPOs of hours, Velero plus GitOps is enough. For tighter RPOs, add database replication or storage replication such as Longhorn DR volumes, Ceph RBD mirroring or Portworx.
How do I fail over traffic between Kubernetes clusters?
Use DNS-based global load balancing such as k8gb or your cloud provider's DNS health checks, or a global load balancer in front of both clusters. Lower DNS TTLs in advance so clients switch quickly.
How often should I test Kubernetes disaster recovery?
Run a full restore drill at least once a quarter and after major platform changes. Time each step, compare it with your RTO, and fix the runbook where it failed.
References
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0