Helm Rollback Operation
The helm rollback command reverts a release to a previous, successful deployment revision. Every successful install, upgrade, or rollback operation creates a new revision number.
The following table outlines the steps, descriptions, and corresponding command for Helm Rollback:
| Step | Description | Command Example |
|---|---|---|
| 1. Check Release History | Use helm history to view the revision numbers, statuses, and descriptions of a release to identify the stable revision you want to revert to. | helm history link-release |
| 2. Identify Target Revision | From the history, choose the revision number that was previously marked as DEPLOYED or a known stable state. | Output snippet: REVISION 2 / STATUS FAILED REVISION 1 / STATUS DEPLOYED Target Revision is 1. |
| 3. Perform Rollback | Run the rollback command with the release name and the target revision number. | helm rollback link-release 1 |
| 4. Verify Rollback | Check the status and history again to ensure the rollback was successful. The rollback itself will create a new revision. | helm status link-release helm history link-release (A new revision, e.g., 3, is created with the configuration of revision 1) |
| Error Example | If the revision number is not valid or doesn't exist. | Error: failed to get release... invalid revision number: 99 |