> ## Documentation Index
> Fetch the complete documentation index at: https://rasa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Helm Installation Guide

> Install Studio with Helm and expose Try your assistant at a public hostname.

## Requirements

To deploy Studio with Helm you need:

* **Rasa Account:** An enterprise Rasa account as well as Rasa and Rasa Studio license keys.
* **LLM API Key:** OpenAI API key or credentials for another LLM.
* **Helm:** An installed version of [Helm](https://helm.sh/docs/intro/install/#helm) `>=3.8.0`.
* **Kubernetes Cluster:** A running Kubernetes cluster. To create a cluster, see documentation on [Google Cloud Platform](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-zonal-cluster), [AWS](https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html), and [Azure](https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-cluster?tabs=azure-cli).
* **kubectl:** A working installation to manage your cluster. To install kubectl, see documentation on [Google Cloud Platform](https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl#generate_kubeconfig_entry), [AWS](https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html), and [Azure](https://learn.microsoft.com/en-us/azure/aks/learn/quick-kubernetes-deploy-cli#connect-to-the-cluster).

## Get Started

### Step 1: Pull the official Studio helm chart

You can run the below-mentioned command to pull the latest version chart from Rasa's Google Artifact Registry.

```
helm pull oci://europe-west3-docker.pkg.dev/rasa-releases/helm-charts/studio
```

This will download the chart file (for example `studio-1.0.3.tgz`) to your machine. Extract this file to see the chart templates and `values.yaml` file.

For the complete documentation of the Helm Chart, see [Studio Helm Chart](https://helm.rasa.com/charts/studio/).

### Step 2: Create a value file

A value file contains the configuration options and parameters for the Helm chart. You can customize these options based on your requirements. A sample `values.yaml` file is available in the Studio Helm Chart. The file can be seen if you extract the `.tgz` chart file you downloaded from the Google Artifact Registry. Follow these steps to create your value file:

1. Make a copy of `values.yaml` file which can be found inside extracted chart directory. Let us call it `my-values.yaml`. This file will serve as your custom value file.
2. Open `my-values.yaml` in a text editor and modify the configuration options according to your needs. Ensure that you review and update values related to the way your Kubernetes cluster is set up. The chart's readme file will provide you with all the keys that are available with their default values.
3. Set the public hostname in [Expose Try your assistant](#expose-try-your-assistant), then save and close `my-values.yaml`.

> [!TIP]
>
> For PostgreSQL database you must [percentage-encode special characters](https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding) in any part of your connection URL - including passwords. For example, `p@$$w0rd` becomes `p%40%24%24w0rd`.

### Expose Try your assistant

**Try your assistant** opens a WebSocket from the browser to the Rasa Pro model server. The browser is outside the cluster, so that address has to be a public hostname. The path is `/talk`.

The chart writes this address into `RASA_MODEL_SERVER_BASE_URL` on the model server:

```text theme={null}
{config.connectionType}://{host}/talk
```

`host` is `rasa.rasa.ingress.hostName` when that value is set. Otherwise `host` is `config.ingressHost`.

If you copied the chart's `values.yaml`, set the public hostname on `config.ingressHost` and keep the `&dns_hostname` anchor. In that file, `rasa.rasa.ingress.hosts` uses `*dns_hostname`, so the `/talk` ingress stays on the same host.

```yaml title="copied values.yaml" theme={null}
config:
  ingressHost: &dns_hostname studio.example.com
  ingressClassName: nginx
```

Helm resolves `&dns_hostname` inside the chart's `values.yaml` before it merges an override. A small values file that sets only `config.ingressHost` leaves `rasa.rasa.ingress.hosts[0].host` as `INGRESS.HOST.NAME`. The browser URL then uses your hostname, and the `/talk` ingress still serves the placeholder, so **Try your assistant** fails. Set the same hostname on that host and keep the `/talk` path. Helm replaces the `hosts` list, so the override has to include the path:

```yaml title="override values.yaml" theme={null}
config:
  ingressHost: studio.example.com
  ingressClassName: nginx
rasa:
  rasa:
    ingress:
      hosts:
        - host: studio.example.com
          paths:
            - path: /talk
              pathType: Prefix
```

Set `config.ingressClassName` to the ingress class installed in the cluster, such as `nginx`. If `rasa.rasa.ingress.hostName` is set, the chart uses it as `host` instead of `config.ingressHost`. A Kubernetes Service name in `hostName` is the address the browser will request. Set `hostName` to the same public hostname, or remove it so `config.ingressHost` applies.

Each component keeps the path the chart assigns:

| Component | Path | What it serves |
| - | - | - |
| Web client | `/` | Studio in the browser |
| Backend | `/api` | Studio API |
| Keycloak | `/auth` | Sign-in |
| Rasa Pro model server | `/talk` | The WebSocket **Try your assistant** opens |

`rasa.enabled` and `rasa.rasa.ingress.enabled` default to `true`. Keep both enabled when Studio runs the bundled Rasa Pro. That model server's Service name is `rasapro`.

`config.connectionType` is the scheme the chart writes into `RASA_MODEL_SERVER_BASE_URL`. The default is `http`. Keep `http` when the ingress terminates TLS and pods call each other over HTTP. `https` in that setup makes the backend fail to authenticate to Keycloak.

The ingress for `/talk` must forward WebSocket upgrade requests. On OpenShift, the route for `/talk` must pass WebSocket traffic. Annotations for the Studio ingresses go in `config.ingressAnnotations`. Annotations for `/talk` go in `rasa.rasa.ingress.annotations`.

[`MS_API_URL`](https://rasa.com/docs/reference/config/studio-environment-variables) is the address the Studio backend uses to reach Rasa Pro inside the cluster. The default is `http://rasapro`. Set it when you turn off the bundled Rasa Pro and point Studio at a Rasa Pro Service you run yourself.

After deployment, open **Try your assistant**. The browser should request `wss://studio.example.com/talk/...`. A request to an in-cluster Service name, including a name that ends in `-model-service`, fails with `ERR_NAME_NOT_RESOLVED`. Studio can still load, because the web client uses a different ingress. Put the public hostname in `config.ingressHost` and on the `/talk` ingress, and confirm the ingress or OpenShift route for `/talk` forwards WebSocket traffic.

> [!NOTE]
>
> **Studio Helm chart 1.x**
>
> These charts deploy a separate model running service. Its in-cluster Service name is `model-running-service`. Leave `modelService.running.proxy.botTalkSubPath` at `/talk`.
>
> On 1.0.0 through 1.2.2, `config.ingressHost` sets the `/talk` ingress host and the address handed to the browser. The shipped value is `rasa.bot.com`. `modelService.running.orchestrator.ingress.hosts[0].host` is not read.
>
> On 1.2.3 through 1.2.6, set `modelService.running.orchestrator.ingress.hostName` to the public hostname. When `hostName` is empty, the chart uses `config.ingressHost`.
>
> [Studio Helm chart](https://helm.rasa.com/charts/studio/) 2.7.0 uses the `rasa` subchart and the Service name `rasapro`. When the hostname in the browser matches neither `rasapro` nor `model-running-service`, compare it with the `values.yaml` from the chart version you installed.

The field list for the current chart is in the [Studio Helm chart](https://helm.rasa.com/charts/studio/) reference.

### Step 3: Create Kubernetes secrets

To store sensitive values mentioned in the above section it is recommended to create Kubernetes secrets. To create them

1. Make a copy of the `secrets.yaml` file which can be found inside extracted chart directory. Let us call it `my-secrets.yaml`.
2. Create base64 encoded values of the secrets and update the yaml file with them. You can run `echo -n "my-secret-key" | base64` to quickly create `base64` encoded values of your secrets.
3. Once all the secrets are updated run `kubectl apply -f my-secrets.yaml -n <namespace>`. This creates the Kubernetes secret in the namespace where you plan to deploy Studio.
4. These secrets are then referenced and passed onto the pods inside the cluster when Studio is deployed with `my-values.yaml` file created in the previous step.

> [tab] Helm Chart v2.2.1 and above
>
> ```
> DATABASE_PASSWORD: // Database password for the Studio databases
> KAFKA_SASL_PASSWORD: // Kakfa password if you use the SASL mechanism
> KEYCLOAK_ADMIN_PASSWORD: // Password to the admin user interface of Keycloak (Studio's user management system). You should use this credential to login to http://<external-ip-or-hostname>/auth
> KEYCLOAK_API_PASSWORD: // Password to access Keycloak API. Studio uses this internally to communicate with Keycloak
> RASA_LICENSE_SECRET_KEY: // Rasa license key
> OPENAI_API_KEY_SECRET_KEY: // OpenAI API key
> ```

> [tab] Helm Chart v2.1.9 and below
>
> ```
> DATABASE_URL: // Database URL of the Studio backend database. Format is `postgresql://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}?schema=public`
> DATABASE_PASSWORD: // Database password for the Studio databases
> KAFKA_SASL_PASSWORD: // Kakfa password if you use the SASL mechanism
> KEYCLOAK_ADMIN_PASSWORD: // Password to the admin user interface of Keycloak (Studio's user management system). You should use this credential to login to http://<external-ip-or-hostname>/auth
> KEYCLOAK_API_PASSWORD: // Password to access Keycloak API. Studio uses this internally to communicate with Keycloak
> RASA_LICENSE_SECRET_KEY: // Rasa license key
> OPENAI_API_KEY_SECRET_KEY: // OpenAI API key
> ```

### Step 4: Deploy Rasa Studio using Helm

With the Helm chart and value file prepared, you are ready to deploy Rasa Studio in your Kubernetes cluster. Run the following command:

```
helm upgrade <release-name> <path-to-chart-folder> -f <path-to-value-file> -n <namespace> --install
```

`<release-name>`: The name for your Rasa Studio release ie. `rasa-studio`.

`<path-to-chart-folder>`: The path to the extracted folder of the `tgz` file you obtained by downloading the chart from the Google Artifactory registry.

`<path-to-value-file>`: The path to your custom value file `my-values.yaml`

`<namespace>`: The Kubernetes namespace you want to deploy to.

Example command:

```
helm upgrade rasa-studio ./studio -f ./my-values.yaml -n studio --install
```

Helm will begin the deployment process, creating the necessary resources and configurations based on the provided values.

### Step 5: Monitor deployment and access Rasa Studio

Once the deployment is complete, you can monitor the deployment status by running:

```
kubectl get pods -n <namespace>
```

Ensure that all pods are running and ready before accessing Rasa Studio.

You can access Rasa Studio at `https://<ingressHost>`, using the hostname from [Expose Try your assistant](#expose-try-your-assistant).

For further information on advanced configuration options and maintenance tasks, refer to the Rasa Studio Helm charts documentation (`README.md` in the downloaded Helm chart and inline comments in `values.yaml` file) and the official [Helm](https://helm.sh/docs/) documentation.

🎉 That's it! You can now proceed to [activate your license](https://rasa.com/docs/studio/installation/setup-guides/license-activation.md)


## Related topics

- [Docker Compose Installation Guide](https://rasa.com/docs/studio/installation/installation-guides/docker-compose-guide.md)
- [Installation Overview](https://rasa.com/docs/studio/installation/overview.md)
- [Rasa Pro Version Migration Guide](https://rasa.com/docs/reference/changelogs/rasa-pro-migration-guide.md)
- [Studio Version Migration Guide](https://rasa.com/docs/reference/changelogs/studio-version-migration-guide.md)
- [Users and Roles Setup Guide](https://rasa.com/docs/studio/installation/setup-guides/authorization-guide.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.