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