Creating a New Release
Let’s walk through creating a new release. In this example, we install an older version of the NGINX chart using the--version option:
Upgrading a Release
Before upgrading, you can verify the current version by describing the pod:Reviewing Release History
Helm provides commands to inspect a release’s lifecycle. Thehelm list command displays summary information, including the current revision, while helm history offers detailed revision insights:
Rolling Back a Release
If an upgrade introduces an unexpected change, you can easily roll back to a previous configuration. Unlike a simple revert, Helm creates a new revision that mirrors the state of the earlier release:Handling Upgrade Dependencies in Kubernetes Packages
When upgrading certain Kubernetes packages, additional parameters are sometimes required. For example, if you attempt to upgrade a WordPress release without supplying the current administrative passwords, you might encounter an error like the following:Helm requires access to specific administrative passwords to upgrade certain configurations, particularly for external services like databases. If these credentials are not provided during an upgrade, you will encounter errors. Consider implementing dedicated backup and restore strategies (often via Chart Hooks) for persistent data stored on volumes or in external databases.
Summary
Helm’s lifecycle management empowers you to:- Install releases that package and manage multiple Kubernetes objects.
- Upgrade releases seamlessly in one command with robust tracking of configuration changes.
- Roll back to previous states by creating new revisions that reflect past stable configurations.
- Inspect release history to monitor and audit configuration modifications over time.