We are currently running Postgres for Kubernetes version 2.3.0 and would like to upgrade to the latest version. Is this possible?
Due to extensive software changes in Postgres for Kubernetes you cannot upgrade directly from version 2.3.0 to 4.3.0.
You will need to plan on:
Upgrade to Tanzu for Postgres on Kubernetes 3.0
Upgrading the VMware Tanzu for Postgres on Kubernetes Operator and Instances
Important upgrade notes:
NOTE: Use Helm CLI 3.8.0 and later
Accessing the Resources
Accessing the resources using two different methods:
Upgrading the Operator using Helm
Steps can be found in the link above.
Upgrading the Operator using the Tanzu CLI
Steps can be found in the link above.
Upgrade to Tanzu for Postgres on Kubernetes 4.2.4
Important upgrade notes:
Version 4.0.0 represents a significant architectural evolution in the Postgres Operator, transition from pg_auto_failover to Patroni as the high availability practices.
Due to the fundamental nature of this architectural transformation, direct upgrades to version 4.0.0 from previous versions are currently not supported. This limitation is a result of the comprehensive changes in how database clusters are managed and orchestrated.
WARNING: Once a major version upgrade process is concluded, it becomes irreversible and you can't downgrade to the source version of the Postgres instance.
Upgrading Tanzu Postgres on Kubernetes Operator from v.3.0 to v4.2.4
Steps can be found in the link above.
NOTE: The upgrade process changes the underlying architecture and requires downtime. It is mandatory to take a full backup of all instances before proceeding with the migration.