Skip to content

Commit a324d0e

Browse files
jmckulkandrewlecuyer
authored andcommitted
Add upgrade warning
Only clusters that have the initialized status can be upgraded. This change adds a warning to check for the status before attempting to perform an automated upgrade.
1 parent 83df763 commit a324d0e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/content/Upgrade/automatedupgrade.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ Previously, the existing cluster upgrade focused on updating a cluster's underly
120120

121121
The automated upgrade process provides a mechanism where, instead of being deleted, the existing PostgreSQL clusters will be left in place during the PostgreSQL Operator upgrade. While normal Operator functionality will be restricted on these existing clusters until they are upgraded to the currently installed PostgreSQL Operator version, the pods, services, etc will still be in place and accessible via other methods (e.g. kubectl, service IP, etc).
122122

123+
124+
{{% notice warning %}}The automated upgrade process does not support upgrading clusters that have not been fully initialized (note that full cluster initialization includes successful pgBackRest stanza creation, as well as a successful initial backup). Therefore, ensure that the following status is set on your pgcluster before attempting the automated upgrade:
125+
```
126+
status:
127+
message: Cluster has been initialized
128+
state: pgcluster Initialized
129+
```
130+
131+
You can check the status with the following command:
132+
```
133+
kubectl get pgcluster mycluster -o jsonpath='{ .status }'
134+
```
135+
{{% /notice %}}
136+
123137
To upgrade a PostgreSQL cluster using the standard (`crunchy-postgres-ha`) image, you can run the following command:
124138
```
125139
pgo upgrade mycluster

0 commit comments

Comments
 (0)