---
schema_version: "1"
id: a08ba5adf31593dc829e97437337699a737aac26c4019a4e6e0d5bc928378247
title: Migrating to Helm Managed Runtime Fabric
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/runtime-fabric/2.9/migrate-helm.md
canonical_url: https://docs.mulesoft.com/runtime-fabric/2.9/migrate-helm
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6f44a90dd76324ff4bf8012e132d27db3e93d8c02df498fdc138489e56447276
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: Runtime Fabric
version: 2.9
---

# Migrating to Helm Managed Runtime Fabric

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

You can migrate to [helm](https://docs.mulesoft.com/runtime-fabric/latest/install-helm) native for Runtime Fabrics that were installed
using [rtfctl](https://docs.mulesoft.com/runtime-fabric/latest/install-self-managed).

## Before You Begin

To perform the migration, you must consider the following:

- The migration is applicable to BYOK clusters which are installed with `rtfctl` and want to migrate
  to helm managed.

- The cluster must be on `rtf-agent` v2.2.5 or above. Note that you will first have to upgrade agent
  to the required version before you can initiate the migration.

Additionally, you must have these details:

- organizationId

- fabricId

- Bearer token for Anypoint user account with **manage fabric** privileges

- rtfctl version >= v1.0.10 is downloaded

## Migrate rtfctl to Helm

To migrate your Runtime Fabric from rtfctl to helm, run this command:

```copy
rtfctl migrate previous-rtf-bkp.tar.gz --organizationId <orgId value> --fabricId <fabricId value> --token <bearer token> --host anypoint.mulesoft.com  --confirm
```

Running this command performs the following actions:

- Backs up the current Runtime Fabric installation: tarball is created with input file name.

- Uninstalls the current Runtime Fabric installation: running the command does not update Mule
  application deployments, it does not delete any of your configurations applied to the rtf
  namespace, it does not delete the rtf namespace, and it does not touch any other namespace than
  the rtf namespace. Uninstalls only the previous runtime-fabric helm chart.

- Regenerates activation data for provided fabricId.

- Deletes custom-properties secret in the rtf namespace, because helm managed rtf recreates the
  secret using values from the helm chart.

- Installs Runtime Fabric with helm commands, to re-render Runtime Fabric helm chart.

Running the command does not upgrade Runtime Fabric to the version other than the existing
installation version.

### Command Success

If running the command is successful:

- You can verify that Runtime Fabric is now helm managed in the Anypoint Runtime Manager UI.

- You can verify that configurations such as ingress templates, persistence gateway, custom
  resources and proxy values that you applied before the migration are intact.

### Command Fails

If running the command fails:

1.  Run `rftctl restore` command with the backup:

    ```copy
    rtfctl restore <path_to_backup_file>
    ```

2.  Re-try `rfctl migrate` command:

    ```copy
    rtfctl migrate previous-rtf-bkp.tar.gz --organizationId <orgId value> --fabricId <fabricId value> --token <bearer token> --host anypoint.mulesoft.com  --confirm
    ```

## Command Help

To get help with the command, run the following entry:

```copy
rtfctl migrate –help
```

## Add Annotations and Labels

To add annotations or labels after the migration, run these commands:

For annotations:

```copy
kubectl annotate secret rtf-muleruntime-license -n rtf \

meta.helm.sh/release-name=runtime-fabric \

meta.helm.sh/release-namespace=rtf --overwrite
```

For labels:

```copy
kubectl label secret rtf-muleruntime-license -n rtf \

app.kubernetes.io/managed-by=Helm --overwrite
```
