Upgrade PX-Central from versions 1.2.x to 2.x.x
The PX-Central 1.2.x versions include the following three Helm charts to upgrade the PX-Backup, License Server, Monitoring service components, independently:
- px-backup
- px-monitor
- px-license-sever
The PX-Central 2.x.x versions include only the px-central
chart, using which you can upgrade all three PX-Central components.
Prerequisites
Ensure a PX-Central version 1.2.x is installed.
Upgrade
To upgrade the PX-Central versions 1.2.x to 2.x.x:
Download the
migration.sh
file.curl https://raw.githubusercontent.com/portworx/helm/master/single_chart_migration/migration.sh -o migration.sh
Change the
migration.sh
file permissions to make it executable.chmod +x migration.sh
Update the Helm repository.
helm repo update
Search for the Portworx repository.
helm search repo portworx
Get the namespace where the PX-Central components are installed.
helm ls -A | grep "px-backup-[0-9].[0-9].[0-9]" | awk '{print $2}'
Run the
migration.sh
file to upgrade to PX-Central 2.x.x../migration.sh --namespace <namespace> --helmrepo <helm repo name> --admin-password <current-admin-user-password>
Upgrade in air-gapped environment
If you are in air-gapped environment, then follow the steps below to upgrade PX-Central from the prior versions to 2.x.x:
Clone the Portworx helm repository.
git clone https://github.com/portworx/helm.git
Make the
migration.sh
an executable file.chmod +x /single_chart_migration/migration.sh
Get the namespace where the PX-Central components are installed.
helm ls -A | grep "px-backup-[0-9].[0-9].[0-9]" | awk '{print $2}'
Modify the
px-central/values.yaml
file matching your internal registry, repository, and image pull secret parameters. Pass the modifiedvalues.yaml
file with the--helm-values-file
option.Run the
migration.sh
file to upgrade to PX-Central 2.x.x../migration.sh --namespace <namespace> --helmrepo <current-directory/charts> --admin-password <current-admin-user- password> --air-gapped --helm-values-file <values.yaml>