You can upgrade agent relays 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 agent relay statefulset resource to
0 to stop
the agent relay.
-
Back up the
conf Persistent Volume.
-
Scale the agent relay statefulset resource back to
1
to restart the agent relay.
-
Perform a Helm upgrade on the agent relay.
-
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 agent relay statefulset resource to
0 to stop
the agent relay.
-
Restore the
conf directory backup to the Persistent
Volume.
-
Perform a Helm rollback to the previous revision of the agent
relay.
-
Set the agent relay statefulset to
1 and verify that
your deployment processes operate correctly after the rollback.
Results
You have upgraded the agent relay to the new
version.