Image Registry Replacement
For cross-cluster and cross-platform recovery scenarios, use this procedure to restore application images so they can pull from the correct repository after migration.
- Image repository migration: When the image repository changes, update application image references to the new repository.
- Image synchronization: When synchronizing images to other projects within the repository (for example, promoting from test to production), update application image references to the new version.
TOC
Procedure
-
Before performing the recovery task, create a ConfigMap that maps old to new image repositories. Replace the placeholders in the following example and save as
change-registry-config.yaml. -
On a control-plane node of the target cluster, create the ConfigMap:
-
After creation, continue with the application recovery task.