Upgrading the agent running as a container
You can upgrade agents that are running as containers by preparing a backup and using helm upgrade.
Before you begin
Procedure
-
Prepare a backup:
- Cancel or wait for all running deployment processes to complete.
-
Set the agent statefulset resource to
0to stop the agent. -
Back up the
confPersistent Volume. -
Scale the agent statefulset resource back to
1to 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
0to stop the agent. -
Restore the
confdirectory backup to the Persistent Volume. - Perform a Helm rollback to the previous revision of the agent.
-
Set the agent statefulset resource back to
1and verify that your deployment processes operate correctly after the rollback.