Upgrading Product Master Kubernetes or Red Hat OpenShift deployment
This topic explains the procedure to migrate Kubernetes or Red Hat® OpenShift® cluster.
Before you begin
- Ensure that the Container system requirements are met.
- Download the Product Master docker assets. For more information, see Downloading images by using your own Docker registry.
- Ensure that you have all the product deployment files for your current fix pack version. Download all the latest fix pack release deployment files from the IBM® Support Fix Central site.
- Ensure that you understand how the Product Master is installed by using operators. For more information, see Installing the product by using Operators.
- Ensure that deployment YAML files are configured. For more information, see Configuring Product Master deployment YAML (Fix Pack 7 and later).
Procedure
What to do next
Upgrade IBM Product Master by using the newly downloaded ipm_12.0.x_cr.yaml file as follows.
- Update the storage class to the same value as used in the IBM Product Master your current fix pack deployment.
- Optional:If you are using own registry, update the value of the .
- Ensure that the CR name for both releases is the
same.
apiVersion: productmaster.ibm.com/v1 kind: ProductMaster metadata: name: <CR name>
- Update all the changes that you need in your new CR including storage type including the new service for Magento Connector.
- Enable feature that are required and mark rest of 0 so that associated pods don't come up and consume CPU and Memory. For more information, see con_oper_custmfeature.html.
- Apply the CR file. After all the pods are up and running, you can log in to the IBM Product Master by using the same login URLs that you used for the IBM Product Master your current fix pack version.
- If you are using dynamic volume provisioning then you need to perform following steps for
MongoDB backup and restore. You need to restore the MongoDB database that you backed up in the
MongoDB backup section.
- Copy dump into the /data/db folder of the MongoDB pod by using the
following
command.
# oc rsync dump productmaster-mongodb-0:/data/db
- Restore the MongoDB database by using the following command.
$ mongorestore --username <username> \ --authenticationDatabase admin \ --password <password> \ /data/db/dump
- Copy dump into the /data/db folder of the MongoDB pod by using the
following
command.
- Performing database migration.
- Access the productmaster-admin-<container-name>
pod by using the following
command.
# oc rsh productmaster-admin-<container-name>
- Run the migrateToInstalledFP.sh script file in the
$TOP/bin/migration folder by using the following
command.
migrateToInstalledFP.sh --fromversion=<fixpackversion>
- Access the productmaster-admin-<container-name>
pod by using the following
command.
- Fix Pack 6If you had done the customization by creating custom images, then to get your customizations, you now need to follow Customizing the containerized deployment instructions.