If you are already using earlier releases of IBM Storage Enabler for Containers, you can
upgrade to the newer version without having to uninstall the previous one or using the installation
package (*.tar) file.
Procedure
Perform the following procedure to upgrade IBM Storage Enabler for
Containers:
- Update the current deployment and DaemonSet images from version <current version
number> to <new version number> by running the following commands:
- kubectl set image daemonset/ubiquity-k8s-flex
ubiquity-k8s-flex=ibmcom/ibm-storage-flex-volume-for-kubernetes:<new version number>
-n ubiquity
- kubectl set image deployment/ubiquity-k8s-provisioner
ubiquity-k8s-provisioner=ibmcom/ibm-storage-dynamic-provisioner-for-kubernetes:<new
version number> -n ubiquity
- kubectl set image deployment/ubiquity
ubiquity=ibmcom/ibm-storage-enabler-for-containers:<new version number> -n
ubiquity
- kubectl set image deployment/ubiquity-db
ubiquity-db=ibmcom/ibm-storage-enabler-for-containers-db:<new version number> -n
ubiquity
- Verify that the image update was successful by checking the status of the IBM Storage Enabler
for Containers pods. Navigate to the directory where the IBM Storage Enabler for Containers was
installed and run the following command ubiquity_cli.sh -a status_wide and check
that all relevant pods are in the Running state.
Note: You can also use the #> kubectl get -n ubiquity pod,daemonset,deployment
-o wide command to verify the update.
|
The image update is finished.
- After the update, change the image version from <current version number> to <new version
number> in all relevant yml files. Otherwise, you will not be able to start the
images using ubiquity_cli.sh -a start. Use the following procedure:
- Navigate to your installer directory and go the /yaml folder in it.
- Locate the following yml files:
- ubiquity-deployment.yml
- ubiquity-k8s-provisioner-deployment.yml
- ubiquity-k8s-flex-daemonset.yml
- ubiquity-db-deployment.yml
- Edit the files and manually change the image version from <current version number> to <new
version number>. For example, image:
ibmcom/ibm-storage-enabler-for-containers-db:<current version number> to
image: ibmcom/ibm-storage-enabler-for-containers-db:<new version
number>.