# Deployment with (Deprecated) Helm v2

*Note: It is recommended that you upgrate from Helm v2 to v3 as v2 is at end-of-life. Refer to legacy instruction for* [*Helm v2*](/mojaloop/legacy/deployment-guide/helm-legacy-deployment.md)*. Please refer to the* [*Helm v2 to v3 Migration Guide*](/mojaloop/legacy/deployment-guide/helm-legacy-migration.md)*.*

This document exists for legacy purposes and describes how to install Mojaloop using Helm v2. Refer to the [Design Authority issue #52](https://github.com/mojaloop/design-authority/issues/52) for more information.

## Deployment and Setup

#### 4.1. Helm v2 configuration

1. Config Helm CLI and install Helm Tiller on K8s cluster:

   ```bash
   helm init
   ```

   *Note: if `helm init` fails with `connection refused error`, refer to* [*troubleshooting*](/mojaloop/legacy/deployment-guide/deployment-troubleshooting.md#helm_init_connection_refused)
2. Validate Helm Tiller is up and running. *Windows replace `grep` with `findstr`*:

   ```bash
   kubectl -n kube-system get po | grep tiller
   ```
3. Add mojaloop repo to your Helm config (optional):

   ```bash
   helm repo add mojaloop http://mojaloop.io/helm/repo/
   ```

   If the repo already exists, substitute 'add' with 'apply' in the above command.
4. Add the additional dependency Helm repositories. This is needed to resolve Helm Chart dependencies required by Mojaloop charts. Linux use with sudo;

   ```bash
   helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
   helm repo add kiwigrid https://kiwigrid.github.io
   helm repo add elastic https://helm.elastic.co
   ```
5. Update helm repositories:

   ```bash
   helm repo update
   ```

### 5. Mojaloop

#### 5.1. Mojaloop Helm v2 Deployment

1. Install Mojaloop:

   Default installation:

   ```bash
   helm --namespace demo --name moja install mojaloop/mojaloop
   ```

   Version specific installation:

   ```bash
   helm --namespace demo --name moja install mojaloop/mojaloop --version {version}
   ```

   List of available versions:

   ```bash
   helm search -l mojaloop/mojaloop
   ```

   Custom configured installation:

   ```bash
   helm --namespace demo --name moja install mojaloop/mojaloop -f {custom-values.yaml}
   ```

   *Note: Download and customize the* [*values.yaml*](https://github.com/mojaloop/helm/blob/master/mojaloop/values.yaml)*. Also ensure that you are using the value.yaml from the correct version which can be found via* [*Helm Releases*](https://github.com/mojaloop/helm/releases)*.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mojaloop.gitbook.io/mojaloop/legacy/deployment-guide/helm-legacy-deployment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
