This Container DR project relies on features/enhancements offered in following projects:
- Velero with PVC backup: https://github.com/futurewei-cloud/velero 2: FKSDR plugin for Velero: https://github.com/futurewei-cloud/velero-plugin-fksdr
- Huawei CSI: https://github.com/futurewei-cloud/eSDK_K8S_Plugin
Note the CEPH based POC is obsolete and no longer maintained, please use dorado_poc for testing.
Test environment requires following hardware:
- Two K8S clusters
- Two enterprise storage system, such as Huawei OceanStor Dorado
Procedure:
=========== manual procedure before running the scripts ================
- Install CSI on both K8S clusters, each connect to their own 'on-site' Dorado.
- Set up async-replication or hyper-metro active-active replication (recommended).
- Test and make sure PVC and replication works.
=========== test script ============ Before you start, clone this git repo to exact same path on one node of each clusters. FOr simplicity, recommend /root as root user.
- set up primary cluster using dr_setup
- create backup using dr_backup
- kick off failover using dr_failover
- restore app to DR site using dr_restore
Optionally you can use dr_test to automate the whole process, and use dr_cleanup to return to state right after step 1.