Upgrade Registry
TOC
PrerequisitesOverviewUpgrade StepsEnvironment Check and PreprocessingOld Plugin Not InstalledOld Plugin InstalledS3 Storage MigrationNFS Storage MigrationLocal Storage MigrationPrerequisites
- Administrator privileges for .
- The old plugin refers to versions of v4.1 and earlier.
- The new plugin refers to versions of v4.2 and later.
Overview
Upgrade the old registry plugin to the new registry plugin according to the registry storage type. Because the Cluster Plugin name changed, manual intervention is required.
Upgrade Steps
Environment Check and Preprocessing
Old Plugin Not Installed
If the old plugin was never installed, you just need to clean up the old plugin from [Marketplace/Cluster Plugins]:
Old Plugin Installed
If the old plugin is installed in any cluster, follow the migration procedure based on your storage type.
S3 Storage Migration
Characteristics: Automatic data migration, no manual operation needed
Procedure:
- Backup Old Plugin Configuration: (Execute in workload cluster where the old plugin is installed)
- Uninstall Old Plugin: (Execute in Global cluster)
- Install New Plugin (Execute in workload cluster where the plugin will be installed)
- Edit backup file
backup-clusterplugininstances.yaml, replace allinternal-docker-registrywithimage-registry - Apply new configuration:
- Cleanup Old Plugin From [Marketplace/Cluster Plugins]: (Execute in Global cluster)
NFS Storage Migration
Characteristics: Manual PV retention and reclaim policy modification required.
Procedure:
- Record PV Information: (Execute in workload cluster where the old plugin is installed)
- Modify PV Reclaim Policy: (Execute in workload cluster where the old plugin is installed)
- Backup Old Plugin Configuration (Same as S3 Step 1)
- Uninstall Old Plugin (Same as S3 Step 2)
- Release PV Binding: (Execute in workload cluster where the old plugin is installed)
- Install New Plugin (Important: You must set the
config.persistence.volumeNamefor the new plugin to retain the old data)
- Edit configuration file
backup-clusterplugininstances.yaml, set config.persistence.volumeName:<OLD_PV> - Apply configuration (Same as S3 Step 3)
- Cleanup Old Plugin From [Marketplace/Cluster Plugins] (Same as S3 Step 4)
Local Storage Migration
Characteristics: Manual data copy required
Procedure:
- Backup Old Plugin Configuration (Same as S3 Step 1)
- Uninstall Old Plugin (Same as S3 Step 2)
- Install New Plugin (Same as S3 Step 3)
- Data Migration:
- ssh login to old plugin Pod node, copy data from old directory to new directory with all file permissions:
- Cleanup Old Plugin From [Marketplace/Cluster Plugins] (Same as S3 Step 4)