If your organization can access multi-region object storage, you can return your clusters to a previous state in case of an unforeseen event, which might result in data loss.

Prerequisites

Review the procedures for Start backing up Kubernetes clusters, Replicate a Bucket, and Restore a Kubernetes cluster.

Procedure

  1. Start backing up the target Kubernetes cluster that you want to return to a previous state.
    1. Specify the namespaces or resources, region, and backup bucket.
  2. Start replicating the backup bucket for the target Kubernetes cluster to a bucket in a region that is different than the backup region of the target cluster.
  3. Start backing up the destination Kubernetes cluster, where you want to recover your workloads.
    1. Specify the namespaces or resources. Select the same region and backup bucket, as the region and bucket you selected for the replication.
  4. Restore the replicated workloads to the destination Kubernetes cluster.

Example:

You start backing up Cluster A with a region Region X and destination bucket Bucket 1. Backups are generated and stored to Bucket 1. You set up bucket replication for Cluster A. You set the data to replicate to Region Y and Bucket 2. You start protecting Cluster B to Region Y and destination bucket Bucket 2. You restore the workloads that are stored in Bucket 2 to Cluster B.