Home / Platform management / Clusters / Backup & recovery / Recoveries / Mirrored address batch replacement scheme

Mirrored address batch replacement scheme

For scenarios involving cross-cluster and cross-platform recovery, you can use this scheme to restore application images, allowing them to pull images normally after migration.

Procedure

  1. Before performing the recovery task, create a ConfigMap file for mapping the old and new image repositories. Please refer to the following ConfigMap and replace the <old image repository address> and <new image repository address> parameters, and save it as change-registry-config.yaml file.

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: change-registry-config
      namespace: cpaas-system
      labels:
        velero.io/plugin-config: ""
        alauda.io/change-registry: RestoreItemAction
    data:
      old: <Old Image Repository Address>
      new: <New Image Repository Address>
  2. Execute the command on the Master node of the target cluster to create a ConfigMap.

    kubectl apply -f change-registry-config.yaml
  3. After creation, you can continue with the application recovery task .