You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update removes older versions of the manual
upgrade procedures, corrects documentation links where
needed and adds clarifying steps for manually upgrading
clusters to the latest version. This is needed for clusters
that have a primary PVC that is different from the default
cluster name, which can occur after a failover or a restore.
Co-authored-by: Jose Joye <[email protected]>
Copy file name to clipboardExpand all lines: docs/content/Upgrade/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ For existing PostgreSQL Operator deployments that were installed using Ansible,
48
48
49
49
First, you will copy your existing inventory file as a backup for your existing settings. You will reference these settings, but you will need to use the updated version of the inventory file for the current version of PostgreSQL Operator.
50
50
51
-
Once you've checked out the appropriate release tag, please follow the [Update Instructions]({{< relref "installation/install-with-ansible/updating-operator.md" >}}), being sure to update the new inventory file with your required settings. Please keep the above [Considerations](/upgrade#considerations) in mind, particularly with regard to the version and storage requirements listed.
51
+
Once you've checked out the appropriate release tag, please follow the [Update Instructions]({{< relref "installation/other/ansible/updating-operator.md" >}}), being sure to update the new inventory file with your required settings. Please keep the above [Considerations](/upgrade#considerations) in mind, particularly with regard to the version and storage requirements listed.
52
52
53
53
Once the update is complete, you should now see the PostgreSQL Operator pods are up and ready. It is strongly recommended that you create a test cluster to validate proper functionality before moving on to the [Automated Cluster Upgrade](/upgrade#postgres-operator-automated-cluster-upgrade) section below.
Copy file name to clipboardExpand all lines: docs/content/Upgrade/upgrade35.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,22 @@ For the cluster(s) you wish to upgrade, record the cluster details provided by
37
37
38
38
pgo show cluster <clustername>
39
39
40
-
so that your new clusters can be recreated with the proper settings.
40
+
so that your new clusters can be recreated with the proper settings.
41
+
42
+
Also, you will need to note the name of the primary PVC. If it does not exactly match the cluster name, you will need to recreate your cluster using the primary PVC name as the new cluster name.
Be sure to add the existing namespace to the Operator's list of watched namespaces (see the [Namespace]( {{< relref "architecture/namespace.md" >}}) section of this document for more information) and make sure to avoid overwriting any existing data storage.
63
78
64
79
65
80
##### Step 5
66
81
67
-
Once the Operator is installed and functional, create a new 4.3.0 cluster matching the cluster details recorded in Step 1. Be sure to use the same name and the same major PostgreSQL version as was used previously. This will allow the new clusters to utilize the existing PVCs. A s
82
+
Once the Operator is installed and functional, create a new 4.3.0 cluster matching the cluster details recorded in Step 1. Be sure to use the primary PVC name (also noted in Step 1) and the same major PostgreSQL version as was used previously. This will allow the new clusters to utilize the existing PVCs. A s
68
83
imple example is given below, but more information on cluster creation can be found [here](/pgo-client/common-tasks#creating-a-postgresql-cluster)
Copy file name to clipboardExpand all lines: docs/content/Upgrade/upgrade4.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,22 @@ For the cluster(s) you wish to upgrade, record the cluster details provided by
44
44
45
45
so that your new clusters can be recreated with the proper settings.
46
46
47
+
Also, you will need to note the name of the primary PVC. If it does not exactly match the cluster name, you will need to recreate your cluster using the primary PVC name as the new cluster name.
pod : mycluster-7bbf54d785-pk5dq (Running) on kubernetes1 (1/1) (replica)
55
+
pvc : mycluster
56
+
pod : mycluster-ypvq-5b9b8d645-nvlb6 (Running) on kubernetes1 (1/1) (primary)
57
+
pvc : mycluster-ypvq
58
+
...
59
+
60
+
the new cluster's name will need to be "mycluster-ypvq"
61
+
62
+
47
63
##### Step 1
48
64
49
65
For the cluster(s) you wish to upgrade, scale down any replicas, if necessary (see `pgo scaledown --help` for more information on command usage) page for more information), then delete the cluster
@@ -60,12 +76,12 @@ Save a copy of your current inventory file with a new name (such as `inventory.b
60
76
61
77
##### Step 3
62
78
63
-
Update the new inventory file with the appropriate values for your new Operator installation, as described in the [Ansible Install Prerequisites]( {{< relref "installation/install-with-ansible/prerequisites.md" >}}) and the [Compatibility Requirements Guide]( {{< relref "configuration/compatibility.md" >}}).
79
+
Update the new inventory file with the appropriate values for your new Operator installation, as described in the [Ansible Install Prerequisites]( {{< relref "installation/other/ansible/prerequisites.md" >}}) and the [Compatibility Requirements Guide]( {{< relref "configuration/compatibility.md" >}}).
64
80
65
81
66
82
##### Step 4
67
83
68
-
Now you can upgrade your Operator installation and configure your connection settings as described in the [Ansible Update Page]( {{< relref "installation/install-with-ansible/updating-operator.md" >}}).
84
+
Now you can upgrade your Operator installation and configure your connection settings as described in the [Ansible Update Page]( {{< relref "installation/other/ansible/updating-operator.md" >}}).
69
85
70
86
71
87
##### Step 5
@@ -80,7 +96,7 @@ And that it is upgraded to the appropriate version
80
96
81
97
##### Step 6
82
98
83
-
Once the Operator is installed and functional, create a new 4.3.0 cluster matching the cluster details recorded in Step 0. Be sure to use the same name and the same major PostgreSQL version as was used previously. This will allow the new clusters to utilize the existing PVCs. A simple example is given below, but more information on cluster creation can be found [here](/pgo-client/common-tasks#creating-a-postgresql-cluster)
99
+
Once the Operator is installed and functional, create a new 4.3.0 cluster matching the cluster details recorded in Step 0. Be sure to use the primary PVC name (also noted in Step 0) and the same major PostgreSQL version as was used previously. This will allow the new clusters to utilize the existing PVCs. A simple example is given below, but more information on cluster creation can be found [here](/pgo-client/common-tasks#creating-a-postgresql-cluster)
84
100
85
101
pgo create cluster <clustername> -n <namespace>
86
102
@@ -217,7 +233,7 @@ You will need to edit the `$PGOROOT/deploy/install-bootstrap-creds.sh` file to c
217
233
export PGOADMIN_USERNAME=pgoadmin
218
234
export PGOADMIN_PASSWORD=examplepassword
219
235
```
220
-
You will need to update the `$HOME/.pgouser`file to match the values you set in order to use the Operator. Additional accounts can be created later following the steps described in the 'Operator Security' section of the main [Bash Installation Guide] ( {{< relref "installation/operator-install.md" >}}). Once these accounts are created, you can change this file to login in via the PGO CLI as that user.
236
+
You will need to update the `$HOME/.pgouser`file to match the values you set in order to use the Operator. Additional accounts can be created later following the steps described in the 'Operator Security' section of the main [Bash Installation Guide] ( {{< relref "installation/other/bash.md" >}}). Once these accounts are created, you can change this file to login in via the PGO CLI as that user.
0 commit comments