A practical guide for platform teams. How to assess replica integrity, prepare a clean cluster, rehearse recovery, and safely restore traffic.
At 6:40 AM, monitoring reports widespread write errors on PersistentVolume volumes. A few minutes later, the application stops handling some requests. Kubernetes clusters are running at the disaster recovery site, and storage is replicating data from production. However, simply having a DR site does not determine whether traffic should be switched over to it.
The first step is to determine what has been compromised. If the failure is caused by a storage array or network issue, restoring the service using replicated data may be the right decision. When ransomware is involved, however, the same replica may contain encrypted files, modified database records, or configuration altered by the attacker. In this article, we explain how to distinguish between these scenarios and prepare both recovery paths on a Kubernetes platform.
In this article
01. The first decision: Can the data and environment be trusted?
02. What replication transfers to the DR site
03. When failover makes sense and what to check before starting
04. Clean recovery: how to avoid restoring the problem
05. A runbook for Kubernetes and stateful applications
06. Choosing the right recovery path for each incident scenario
07. Exercises and metrics that validate readiness
01. The first decision: Can the data and environment be trusted?
During the first minutes of an incident, the team may not know whether the problem is limited to cluster unavailability or has also affected data and privileged accounts. The procedure should therefore begin with securing telemetry, restricting the attacker’s potential access, and determining the scope of the changes. The person approving service restoration must understand the level of uncertainty involved in making that decision.
For example, a PostgreSQL volume is available at the secondary site, but monitoring detected an unusual increase in write operations before the outage. Simply confirming that the PVC can be mounted is not enough. The team must establish when the suspicious operations began, whether the changes were replicated, and whether the database passes integrity checks. Simply starting a Deployment will not resolve this diagnostic challenge.
In a Kubernetes environment, it is worth maintaining an up-to-date dependency map: which storage system a StatefulSet uses, where secrets are retrieved from, how authentication works, whether the application requires an external database, and which services must be started first. This type of review can be included in a Kubernetes audit. Sorigo offers both configuration assessments and services related to platform architecture and maintenance.

02. What replication transfers to the DR site
The purpose of storage replication is to minimize the difference between the active copy and the standby copy. With synchronous replication, a write is acknowledged only after the required conditions have been met at both sites. With asynchronous replication, changes reach the secondary location with a delay. These parameters affect the achievable RPO, but they do not establish whether a particular operation was correct from the application’s perspective.
Ransomware that encrypts files on a mounted volume generates ordinary write operations. Replication may transfer them to the DR site just like legitimate transactions. The same applies to a faulty script that updates database records or an accidental table deletion. Both sites may end up containing up-to-date data that is nevertheless unusable.
The configuration layer requires separate protection. If an attacker has modified manifests or secrets and the synchronization process is still running, those changes may propagate to resources used during recovery. That is why a DR project should also include GitOps repositories, CI/CD access, image registries, and administrator permissions.
Replication is particularly valuable when an entire site is lost, provided that the data at the DR site has been verified. In a Sorigo project involving a Kubernetes platform with geographic redundancy, the scope included multi-site topology, storage/CSI, networking, certificates, and operational procedures. It is a good example of what is actually involved in building a standby cluster.
03. When failover makes sense and what to check before starting
Failover to DR is justified when the primary site can no longer deliver the service and the replica retains a trustworthy state. Before starting, the team must check more than just the presence of volumes at the secondary location. The consistency of volume groups sharing application data is critical, as is the readiness of the services required to bring the application online.
Particular attention should be paid to situations where the primary site remains partially available. Resuming writes from two locations can lead to state divergence. The runbook should define how to isolate the source site (fencing), the conditions for reversing replication, and a separate failback procedure. The decision to activate the new location must be approved by the designated person; monitoring should not replace that responsibility.
For multi-volume applications, the selection of consistency groups should reflect the business boundaries of the service. If a single recovery plan covers a database, a message queue, and user files, the design should specify the order in which these components are restored. When evaluating DR orchestration products, including CloudCasa, it is important to check consistency group limitations and compatibility with the specific CSI driver and storage system.
In CloudCasa DR, storage failover is performed at the consistency group level. If a group includes volumes belonging to independent applications outside a given DR Plan, those volumes may be included in the failover along with the target service. DR Plan boundaries must therefore be aligned with consistency group boundaries during the design phase. Source
CloudCasa DR (formerly CloudCasa DR for Storage) performs failover through a DR Recovery Job initiated by an operator. The “Stop workloads before failover” option is enabled by default. However, if the source cluster is unavailable, the job may continue even if stopping workloads fails. The runbook must account for independent fencing and the elimination of split-brain conditions before writes are resumed. Source

Failover time is best measured until the business functionality has been restored. A green Pod status and a correctly mounted PVC are necessary, but they do not prove that the application is writing data to the correct location or that customers can successfully complete a transaction.
04. Clean recovery: how to avoid restoring the problem
When data changes are suspected of being malicious, recovery should be performed from a separate recovery point. In practice, “separate” means a repository and access permissions that are not controlled by the same accounts as the production cluster. Backup retention and immutability can make it harder to delete older recovery points during an attack. It is worth remembering that backup resilience depends on storage configuration, key protection, and identity management.
Choosing the right recovery point is often the most difficult part. The day an attack is detected is rarely the same as the day the compromise began. The incident response team should provide engineers with a time window during which the first malicious changes may have occurred. Available backup points are then verified, and the latest one that can be demonstrated to contain valid data is selected.
The rebuilt cluster should initially remain isolated. The target environment should be created using verified infrastructure definitions and configuration, while container images should come from a trusted registry. Secrets, tokens, and certificates that may have been exposed need to be rotated. Connecting the recovered application directly to production APIs can cause it to repeat unwanted operations or process the same messages from a queue again.
If an organization is subject to DORA, restoring from backups using its own ICT systems must take into account Article 12(3), which addresses the physical and logical segregation of recovery systems from the source systems. When credentials have been compromised, secrets should not be blindly copied from a backup. They should be restored from a trusted source and rotated before integrations are reconnected.

The final step is validation with the system owner: whether the number and state of transactions match expectations, whether integrations can be safely re-enabled, and whether a rollback plan is in place. Only after this acceptance process should user traffic be restored.
Sorigo’s earlier article on microservices backup may also be useful when discussing backup architecture. It addresses the challenge of maintaining data consistency across multiple Kubernetes components.
05. A runbook for Kubernetes and stateful applications
A recovery runbook should reduce the number of decisions made under pressure. For every critical application, it is worth documenting incident information sources, dependencies on shared services, the permissions required to perform recovery operations, and the person responsible for approving activation at the new location. Configuration should be version-controlled alongside the procedures; otherwise, the documentation will quickly become inconsistent with the actual state of the cluster.
What should you pay attention to in Kubernetes?
Application state: Identify PVCs/PVs, storage classes, database backups, and the methods used to verify data consistency. For StatefulSets, document startup ordering requirements and the impact of restarts on quorum.
Configuration and security: Include CRDs, operators, RBAC rules and NetworkPolicies, ingress, certificates, service accounts, secrets, and IAM integration. Following an attack, these resources may need to be regenerated or reviewed.
Shared services: Document how to bring up DNS, the load balancer, routing, CSI storage, and observability. The absence of even one of these services can block recovery, even if the applications themselves have been restored.
Measurements: Record the time of incident detection, the recovery decision, the start of the recovery process, and confirmation of business readiness. Separately measure the difference between the selected data recovery point and the agreed reference time for RPO.
At Sorigo, these dependencies are part of our work in Kubernetes platform design, HA/DR, GitOps, storage, and operational practices. Our portfolio also includes audits of existing clusters. In our published case study describing an audit of a financial-sector environment, we cover areas such as storage, backup, and business continuity.
06. Choosing the right recovery path for each incident scenario
In practice, the boundary between an outage and a security compromise is not always immediately clear. The runbook should therefore allow failover to be postponed until reliable analysis results are available. The examples below illustrate the checkpoints worth agreeing on during a platform workshop.

For configuration errors, the scenario may require restoring only selected resources or rolling back GitOps changes. If a cluster takeover is suspected, deploying a new control plane and restoring clean application data may be a better option. In both cases, the scope of work should be based on the findings of the security team and the service owner.
07. Exercises and metrics that validate readiness
Restoring a single database from a local snapshot does not demonstrate whether an organization can bring a service back online after losing an entire site or experiencing an attack. Tests should cover both scenarios: DR using replicated volumes and recovery from a selected backup point into a separate cluster. For an exercise to be meaningful, it must allow for the possibility of discovering missing permissions, excessively slow data rehydration, or an unavailable IAM system.
A good first exercise is to restore one representative stateful application. The team selects a recovery point, builds the target environment, runs application tests, and documents the results. This provides a basis for determining whether the assumed RTO and RPO targets are realistic, after which the exercise can be repeated using a different failure scenario.
The test report should include job logs, manifest versions, recovery time measurements, integrity test results, the people responsible for decisions, and a list of identified obstacles. In organizations subject to DORA or national regulations implementing NIS2, this documentation helps demonstrate that procedures work in practice, not just on paper. Sorigo’s webinar on NIS2 and DORA provides further information on Kubernetes environment protection and auditing.
08. Where CloudCasa and Sorigo’s services fit in
CloudCasa can be one of the tools considered when designing this type of environment. The vendor’s documentation describes DR failover orchestration using replication on supported storage platforms, as well as restoring Kubernetes backups to a different cluster. Integrations include selected Dell PowerStore, HPE Alletra, and SUSE Storage (Longhorn) systems. Actual capabilities depend on the solution version and specific configuration.
SafeLock protects recovery point entries in the CloudCasa catalog, while the immutability of the actual data requires a properly configured storage repository (e.g. S3 Object Lock). During a PoC, retention settings, the licensing plan, and permissions should all be verified. After a failover has been performed, the given DR Plan / DR Recovery Job cannot be run again in its previous form. The next recovery scenario must be planned in accordance with the documentation.
When evaluating a solution, we verify CSI driver compatibility and volume behavior, consistency group boundaries, backup catalog protection, retention, the data storage model, and the ability to test both failover and clean restore. It is also important to understand what happens when the primary site becomes unavailable and whether the operator can safely interrupt an operation. These are architectural questions that cannot be answered by looking at a product’s feature list alone.
The role of professional services is to connect application requirements with platform capabilities. At Sorigo, the process can start with a Kubernetes audit, followed by designing DR scenarios, improving security, preparing infrastructure recovery from code, and conducting a service recovery exercise. The choice of tooling should be based on the results of this assessment.
If you are preparing a ransomware recovery plan or want to validate your existing failover process, a good starting point is a short assessment of one critical service: its volumes, dependencies, existing replica, and backup points. Such a meeting can result in a concrete test scope rather than another technology presentation.
Talk to Sorigo about a Kubernetes audit and recovery exercise.
09. FAQ and next steps
Does disaster recovery protect Kubernetes against ransomware?
DR helps restore application availability after an infrastructure failure. If it relies on data replication, it may also replicate encryption or logical data corruption. Returning to an earlier state requires an independent, verified recovery point.
When is switching to a secondary site sufficient?
When the source location is unavailable and the replica’s state has been verified. You must also confirm that the secondary cluster has all the required dependencies and that the primary site will not resume writing the same data.
Can a Kubernetes backup be restored to a different cluster?
Yes, depending on the solution being used and the types of resources being protected. You need to prepare compatible infrastructure, ensure access to the backups, and restore configuration, secrets, and application dependencies as well. Many tools, including CloudCasa, support cross-cluster recovery.
How do you determine which backup point is safe?
Incident analysis should identify the earliest likely point of compromise. Backups created before that point are then checked in an isolated environment. Selecting a recovery point involves balancing data integrity against the loss of more recent data.
What should you check during the first recovery test?
Start with a single stateful application. Restore its data and resources in a separate cluster, run functional tests, measure the recovery time, and record the gap between the restored state and the selected backup point. Any identified blockers should be added to a remediation plan.
Sources and additional resources
The following sources can help verify the described tool capabilities and the scope of Sorigo’s expertise. Before implementation, compatibility with the specific platform version, storage system, and CSI drivers should be verified.
- Sorigo — Kubernetes platform design and maintenance
- Sorigo — Kubernetes audit and support
- Sorigo — Kubernetes cluster audit case study in the financial sector
- Sorigo — Kubernetes environment with geographic redundancy
- CloudCasa — DR setup guide
- CloudCasa and Dell PowerStore — disaster recovery
- CloudCasa and SUSE Storage — disaster recovery