Skip to main content

Namespace, StorageClass, And IngressClass Mapping

Restore mapping safely adapts source resources to the target cluster. Cross-cluster restore and drills usually need mapping.

Namespace Mapping

namespaceMapping:
demo-bookinfo: demo-bookinfo-restore

StorageClass Mapping

SourceTarget
fast-ssdstandard
csi-rbd-sccsi-hostpath-sc

IngressClass Mapping

If the source uses nginx and the target uses traefik, patch the IngressClass through restore policy or modifiers.

Console

In application restore, scroll down to Namespace control to configure include/exclude namespaces and namespace mapping.

Configure application restore namespace mapping

OptionMeaningRecommendation
Include namespacesRestores only selected source namespaces.Use for partial restore. Leave empty for full restore.
Exclude namespacesExcludes selected source namespaces.Exclude temporary, test, or non-target namespaces.
Source namespaceSource namespace from the backup.Select from backup content instead of typing a namespace that does not exist.
Target namespaceNamespace created or used on the target cluster.Use a new namespace for drills to isolate and clean up the restore.
AddSaves the current source / target namespace pair as a mapping rule.Click Add after filling the pair, otherwise the mapping is not saved.

Create disaster recovery instance

Verify

kubectl --context prod-b get ns demo-bookinfo-restore
kubectl --context prod-b -n demo-bookinfo-restore get pvc
kubectl --context prod-b -n demo-bookinfo-restore get ingress -o yaml