# Upgrading Connectware to 2.0.5 (Kubernetes)

Connectware 2.0.5 brings significant improvements to OPC UA reliability and CybusMQ performance, reducing message loss and improving system stability under load. For more information, see [What has changed in 2.0.5](https://docs.cybus.io/2-0-6/reference/changelog#what-has-changed-in-205).

This upgrade requires you to delete the data volumes that store the metadata of CybusMQ.

## Disclaimer

{% hint style="info" %}
When upgrading your Connectware instance, follow the upgrade path based on your current version:

* **If you are on version 1.4.1 or below**
  * Upgrade sequentially: **1.5.0 → 1.7.0 → 2.0.0 → 2.0.1 → 2.0.2 → 2.0.5 → 2.0.6**
* **If you are between version 1.5.0 and 1.6.2**
  * Upgrade sequentially: **1.7.0 → 2.0.0 → 2.0.1 → 2.0.2 → 2.0.5 → 2.0.6**
* **If you are on version 1.7.0 or newer (but below 2.0.0)**
  * Upgrade sequentially: **2.0.0 → 2.0.1 → 2.0.2 → 2.0.5 → 2.0.6**
* **If you are on version 2.0.0**
  * Upgrade sequentially: **2.0.1 → 2.0.2 → 2.0.5 → 2.0.6**
* **If you are on version 2.0.1**
  * Upgrade sequentially: **2.0.2 → 2.0.5 → 2.0.6**
* **If you are on version 2.0.2, 2.0.3, or 2.0.4**
  * Upgrade sequentially: **2.0.5 → 2.0.6**
* **If you are on version 2.0.5**
  * Upgrade directly to **2.0.6**
* **If you are performing a clean or new installation**
  * No upgrade path required. You can install the **latest available version** directly.

**Detailed instructions on each upgrade step**

* [Upgrading Connectware to 2.0.6 (Kubernetes)](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes/upgrading-connectware-to-2-0-6-kubernetes)
* [Upgrading Connectware to 2.0.5 (Kubernetes)](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes/upgrading-connectware-to-2-0-5-kubernetes)
* [Upgrading Connectware to 2.0.2 (Kubernetes)](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes/upgrading-connectware-to-2-0-2-kubernetes)
* [Upgrading Connectware to 2.0.1 (Kubernetes)](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes/upgrading-connectware-to-2-0-1-kubernetes)
* [Upgrading Connectware to 2.0.0 (Kubernetes)](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes/upgrading-connectware-to-2-0-0-kubernetes)
* [Upgrading Connectware to 1.7.0 (Kubernetes)](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes/upgrading-connectware-to-1-7-0-kubernetes)
* [Upgrading from Connectware 1.x to 1.5.0 (Kubernetes)](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes/upgrading-connectware-from-1-x-to-1-5-0-kubernetes)
  {% endhint %}

## Important Notes

This upgrade will delete all persisted data of the Connectware broker. This includes client sessions, subscriptions, and retained data. If your configuration relies on any type of data persisted by the broker, make sure to properly initialize your applications after the upgrade.

If you rely on persisted data, create a backup or snapshot of the broker data volumes. This allows you to roll back in case of complications.

## Upgrading Procedure

{% hint style="warning" %}
If your installation is older than 2.0.2, first complete the [upgrade to 2.0.2](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes/upgrading-connectware-to-2-0-2-kubernetes) before upgrading to 2.0.5.
{% endhint %}

1. Scale down the broker cluster to zero replicas to stop all broker pods. For more information, see [Scaling Down the Broker Cluster to Zero](https://docs.cybus.io/2-0-6/cybusmq/mqtt-broker-storage-volumes-in-kubernetes/scaling-the-broker-cluster#scaling-down-the-broker-cluster-to-zero).
2. Delete the broker data volume of Connectware. For more information, see [Deleting Broker Data Volumes on Kubernetes](https://docs.cybus.io/2-0-6/cybusmq/deleting-broker-data-volumes#deleting-broker-data-volumes-on-kubernetes).
3. Download and install Connectware 2.0.5. For more information, see [Upgrading Connectware (Kubernetes)](https://docs.cybus.io/2-0-6/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes).

Once all pods are up and running again and no new deviations appear in Connectware, the upgrade has been successful.
