Updating Pro Mosquitto
Updating Pro Mosquitto is usually a straightforward process. When a new version is available, download the latest version from our Cedalo platform. Depending on the update and the platform you are using, your existing setup may continue to function correctly, and you can simply adapt to certain changes. Please refer to the migration information for each version for more details. Be aware, that new features may need activation in the configuration file of Pro Mosquitto. See the release notes for more details.
If there are no changes that require reconfiguration of your current setup, the following steps should be taken for the update:
Docker:
- Update the version number in the
docker-compose.yml
file to the latest version. - Run the following commands to update the images:
docker-compose down
docker-compose up
- Update the version number in the
OpenShift:
- Uncompress the helm package:
tar -xzvf <helm-package-name>
- Open and edit the
values.yaml
file present inside the package and update themosquitto.image.tag
field in thevalues.yaml
file to latest version number. - Go one level back to the parent directory and package the folder back to its compressed form using:
helm package <helm-package-folder-name>
- Redeploy your updated setup using the same credentials which you used while installing the setup using
helm install
command the first time. Below command is just a template:helm upgrade <helm-package-name> --set repoPath=<path-to-your-folder> --set runAsUser=<user-id> -n <namespace> --set namespace=<namespace> --set nfs=<nfs-ip-if-required> --set imageCredentials.registry=registry.cedalo.com --set imageCredentials.username=<username> --set imageCredentials.password=<password> --set imageCredentials.email=<email>
- Uncompress the helm package:
Kubernetes:
- Uncompress the helm package:
tar -xzvf <helm-package-name>
- Open and edit the
values.yaml
file present inside the package and update themosquitto.image.tag
field in thevalues.yaml
file to latest version number. - Go one level back to the parent directory and package the folder back to its compressed form using:
helm package <helm-package-folder-name>
- Redeploy your updated setup using the same credentials which you used while installing the setup using
helm install
command the first time. Below command is just a template:helm upgrade <helm-package-name> --set repoPath=<path-to-your-folder> -n <namespace> --set namespace=<namespace> --set nfs=<nfs-ip-if-required> --set imageCredentials.registry=registry.cedalo.com --set imageCredentials.username=<username> --set imageCredentials.password=<password> --set imageCredentials.email=<email>
- Uncompress the helm package:
Portainer:
- Update the version number in the
docker-compose.yml
file to the latest version. - Run the following commands to update the images:
docker-compose down
docker-compose up
- Update the version number in the
Native Linux on RHEL (Red Hat Enterprise Linux):
- Follow the appropriate update procedures for your Linux distribution.
Native Windows:
- Download the new
.exe
file. - Stop the Mosquitto service.
- Install the new version over the current installation.
- Download the new
Make sure to verify your configurations after the update to ensure everything is functioning as expected.
Cluster Updates
In a cluster update one broker after the other starting with the two follower nodes. This way the cluster stays intact while updating.