Skip to main content

Prepare A Demo Application

Use an isolated namespace, clear labels, and a workload with a PVC so the tutorials can validate both resource restore and data restore.

Example Names

ItemExample
Source clusterprod-a
Target clusterprod-b
Namespacedemo-bookinfo
Application labelapp=bookinfo
Repositoryminio-dr
Backup policydaily-backup
Data sync policydatasync-5m
Resource sync policyresourcesync-5m

Create Namespace

kubectl --context prod-a create namespace demo-bookinfo
kubectl --context prod-a label namespace demo-bookinfo app=bookinfo

Deploy a workload with a Deployment or StatefulSet, Service, ConfigMap or Secret, PVC, and optionally Ingress.

Write Test Data

kubectl --context prod-a -n demo-bookinfo exec deploy/<app> -- sh -c \
'date > /data/tutorial-checkpoint.txt'

After restore or failover, verify the same file or application-level checkpoint.

Target Cluster Requirements

  • Compatible StorageClass or a configured mapping.
  • Required CRDs and image pull secrets.
  • Access to the same object storage.
  • Prepared network and image registry access for failover.