Upgrade Native Helm 2 Deployments to Helm 3
If you have already created native Helm 2 deployments, you can upgrade your deployments to Helm 3 by following the steps in this topic.
In this topic:
- Before You Begin
- Blog Post
- Optional: Migrate Your Release History From Tiller
- Step 1: Add a new Delegate with Helm 3 Installed
- Step 2: Enable Helm 3 on Harness Services
Before You Begin
The following blog post walks you through creating a Helm 3 deployment from scratch using Harness, including a video walkthrough:
Optional: Migrate Your Release History From Tiller
Helm 3 uses a new data data model that impacts your native Helm deployment release history. If you upgrade Harness native Helm 2 deployments to Helm 3 without migrating your target cluster to Helm 3, your Helm 3 deployments will not include your Helm 2 release history.
If maintaining continuity between your Helm 2 and Helm 3 releases is not required, you do not need to migrate your release history to Helm 3. Simply move onto the next steps.
- If you want to maintain release continuity between Helm 2 and Helm 3, migrate your release history to Helm 3 using the steps in How to migrate from Helm v2 to Helm v3 from Helm.
In particular, pay attention to the steps in the Migrate Helm v2 Releases.
Once you are done migrating, follow the steps below.
Step 1: Add a new Delegate with Helm 3 Installed
If you are upgrading your native Helm deployments to Helm 3, you will need to add a new Harness Delegate.
- Install and run a new Kubernetes Cluster Delegate or Helm Delegate in your target cluster, or install a new Helm Delegate using the Kubernetes management platform, Rancher. For steps on setting up a new Delegate, use one of the following:
You do not need to add a Delegate Profile for Helm 3. Harness includes Helm 3 support in any Delegate that can connect to the target Kubernetes cluster.
Harness adds Helm within the Delegate directory path, in /client-tools/helm/v3.0.2.
Step 2: Enable Helm 3 on Harness Services
- Log into Harness.
- Click Setup, and open your Harness Application.
- Open the Harness Service you use for native Helm 2 deployments.
- In the Harness Service, click vertical ellipsis (︙) and then click Edit:
- Select the Enable Helm V3 setting and click Submit.
That's it. Now your Harness Service is upgraded for Helm 3 and you can start using Helm 3 charts.
Custom Helm Binaries and Delegates
Harness ships Helm binaries with all Harness Delegates.
If you want the Delegate to use a specific Helm binary, see the steps in Use Custom Helm Binaries on Harness Delegates.
If your deployment uses Helm 3, Harness will select a Delegate that has Helm 3 installed. You do not need to make any changes.
However, if the Infrastructure Definition used by the Workflow is configured with a Cloud Provider that uses the Delegate Selector of a Delegate that is running Helm 2, your Helm 3 deployment might fail.
After you have installed and run your new Delegate, and installed and run Helm 3 on it, add a Selector to your new Delegate and change your Cloud Provider to use its Delegate Selector.