ARTIFACTORY: Migrating from Helm v2 to Helm v3
Migrating from Helm v2 to Helm v3
Helm, the package manager for Kubernetes, underwent a significant update with the release of version 3. This article outlines the key differences between Helm client v2 and v3, and provides guidance on the migration process.
Why Migrate?Helm v2 was officially deprecated in November 2020, making migration to v3 crucial for continued support and access to new features. Moreover, starting November 1st, 2024, JFrog Artifactory will use Helm Relative URL for indexing charts by default, a feature that is only supported in Helm v3 and above.
Key Changes in Helm v3- Removal of Tiller: Helm v3 eliminates the need for Tiller, simplifying the architecture and enhancing security.
- Release Storage: The way Helm stores release information on the cluster has changed.
- 3-Way Strategic Merge Patch: Helm v3 now uses a 3-way strategic merge patch for upgrades and rollbacks. This approach compares the old manifest, live state, and new manifest, allowing for more intelligent upgrades and better handling of manual changes made to releases.
For additional changes between Helm v3 to v2, see Helm v3 changes overview and the changes since Helm v2 FAQ .
Migration Process
IMPORTANT NOTICE: The Helm 2to3 plugin is now considered deprecated. We urge you to complete your migration as soon as possible if needed, as the functionality of this tool may be limited in the future.
1. Backup: Before starting, backup all of your Helm v2 data.
2. Install Helm v3: Download and install Helm v3 alongside your existing v2 installation.
3. Use the 2to3 Plugin: Helm provides a plugin to assist with migration:
helm plugin install <https://github.com/helm/helm-2to3> helm 2to3 move confighelm 2to3 convert
4. Test: Thoroughly test your migrated releases to ensure functionality.
Clean Up: Once migration is complete and verified, remove Helm v2 components.
FAQ:
Q: When should I expect the Helm relative URL to be included in JFrog Artifactory versions by default? Can I keep full URL path?
A. The Helm relative URL will be turned on for any JFrog Artifactory installation after November 1st, 2024. We suggest using relative URLs to decrease the index file size and make the indexing process more efficient. That said, deactivating can be by setting a system property artifactory.helm.relative.urls.enabled=false
Q: Can I still use Helm clients below version 3.0.0 with the new Artifactory versions?
A. Helm clients below version 3.0.0 will not be compatible with the new Artifactory versions starting November 1st, 2024. This is because the upcoming JFrog Artifactory versions will use Helm Relative URL for indexing Helm charts by default, a feature only supported in Helm v3 and above. To ensure continued functionality and support, it is crucial to upgrade your Helm clients to version 3.0.0 or later before this date.
Q: Will my existing Helm charts work with Helm v3?
A. Most Helm v2 charts should work with Helm v3, but some may require modifications. It's important to test all your charts after migration. Pay special attention to charts that use APIs or features that have changed between v2 and v3.