You can upgrade servers that are running as containers by preparing a backup and
using helm upgrade.
Before you begin
You must have a maintenance window in place, as scaling the
statefulset results in temporary downtime.
Procedure
-
Prepare a backup:
-
Cancel or wait for all running deployment processes to complete.
-
Set the server statefulset resource to
0 to shut down
the server.
-
Back up the database.
For example, export the schema to a file.
-
Back up the
appdata Persistent Volume.
-
Scale the server statefulset resource back to
1 to
restart the server.
-
Perform a Helm upgrade on the server.
-
Verify that deployment processes operate correctly.
If issues arise, proceed to the rollback steps.
-
Roll back the upgrade, if required:
-
Cancel or wait for all running deployment processes to complete.
-
Set the server statefulset resource to
0 to shut down
the server.
-
Restore the database.
For example, drop the schema and import the schema from the backup
file.
-
Restore the
appdata directory backup to the Persistent
Volume.
-
Perform a Helm rollback to the previous revision of the server.
-
Set the server statefulset resource back to
1 and
verify that your deployment processes operate correctly after the
rollback.
Results
You have upgraded the server to the new version.