> For the complete documentation index, see [llms.txt](https://sunbird.gitbook.io/sunbird-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunbird.gitbook.io/sunbird-spark/use/getting-started/enabling-add-ons.md). Agents can also search and read this documentation through its [MCP server](https://sunbird.gitbook.io/sunbird-spark/~gitbook/mcp).

# Enabling add-ons

Add-ons extend Sunbird's core functionality. They are optional, independently deployable, and can be installed at any time after the base installation is complete.

***

### How It Works

Base layer `install.sh` is installed, it provisions your desired cloud infrastructure and deploys core services.

Once the base install is complete, add-ons can be deployed independently using their own `addon.sh` script. Each add-on's script picks up the values already generated by the base install and deploys the add-on's Helm charts onto the running cluster. Add-ons can be installed in two ways, matching the same two methods available in the one-click installer.

#### Method 1 — GitHub Actions

This is the recommended approach if you set up Sunbird using the GitHub Actions method. Your private config repo already contains the `sunbird-spark-addons.yaml` workflow for deploying add-ons.

Go to your private config repo on GitHub → **Actions** → **sunbird-spark-addons.yaml** → **Run workflow**

Select the add-on you want to deploy and trigger the workflow. It uses the same encrypted config and secrets already in place from your base installation.

* Refer the github repository [her&#x65;**→**](https://github.com/Sunbird-Spark/sunbird-spark-installer/tree/main/private-repo-setup)

```
sunbird-spark-installer/
├── .github/
│   └── workflows/
│       └── sunbird-spark-platform.yaml        
|       └── sunbird-spark-addons.yaml          # Single file for addons deployment
...
```

{% hint style="info" %}
All add-ons follow the same installation pattern via this workflow. Refer to the [README](https://github.com/Sunbird-Spark/sunbird-spark-installer/blob/develop/private-repo-setup/README.md#step-9-optional--deploy-addons) for further information.
{% endhint %}

#### Method 2 — VM via install.sh

Use this method if you deployed using `install.sh` directly on a VM cloud environment.

* Refer the github repository [her&#x65;**→**](https://github.com/Sunbird-Spark/sunbird-spark-installer/tree/develop/addons)

```
addons/
├── global-values.yaml           # Shared static global values for all addons
├── global-cloud-values.yaml     # Cloud-generated addon values (created at runtime by addon opentofu)
├── images.yaml                  # Centralized image registry/repo/tag configuration
└── <addon-name>/
    ├── README.md                # Addon-specific documentation
    ├── helmchart/               # Parent directory for helm chart
    │   └── <addon-name>/        # Actual Helm chart directory
    │       ├── Chart.yaml
    │       ├── values.yaml     # Chart-specific values
    │       ├── templates/      # Kubernetes manifests
    │       └── configs/        # Application configuration files (if needed)
    ├── opentofu/                # OpenTofu/Terraform configurations (optional)
    └── script/
        └── addon.sh            # Installation/uninstallation script
```

{% hint style="warning" %}
Make sure that Base `install.sh` has completed successfully, and core Sunbird services are running (Elasticsearch, Redis, Kafka, YugabyteDB).
{% endhint %}

Installation setup guide for all add-ons which follow the same installation pattern:

{% stepper %}
{% step %}

#### Navigate to the add-on directory

```bash
cd addons/<addon-name>

# Install for a specific cloud provider (defaults to azure if not mentioned)
./script/addon.sh install azure
# ./script/addon.sh install gcp
```

{% endstep %}

{% step %}

#### Verifying the installation

```bash
# Check pod status
kubectl get pods -n sunbird -l app.kubernetes.io/managed-by=<addon-name>

# Check logs
kubectl logs -n sunbird -l app.kubernetes.io/managed-by=<addon-name> -f

# List helm releases
helm list -n sunbird
```

{% endstep %}

{% step %}

#### Removing add-ons

```bash
cd addons/<addon-name>

# Uninstall
./script/addon.sh uninstall azure
# ./script/addon.sh install gcp
```

{% endstep %}
{% endstepper %}

### Exception — DIAL Add-on

DIAL requires additional steps compared to other add-ons. Unlike the rest, it provisions cloud infrastructure (a storage container) via OpenTofu as part of its setup, and requires a core service to be redeployed afterward to pick up the new configuration.

**Step 1 — Run the DIAL add-on script**

Navigate to the DIAL add-on directory and run the install script. This provisions the required cloud container via OpenTofu.

{% hint style="info" %}
DIAL requires a infrastructure deployment, uncomment **`provision_resources`** in the **`./script/addon.sh`** file for OpenTofu or infrastructure provisioning.

```shellscript
install() {
    # provision_resources
    deploy_chart
}
```

{% endhint %}

```bash
cd addons/dial
./script/addon.sh install azure
```

**Step 2 — Enable the DIAL flag in `global-values.yaml` in** [**spark-ed-installer**](https://github.com/Sunbird-Spark/sunbird-spark-installer/blob/develop/opentofu/azure/template/global-values.yaml) **repo**

Once the add-on is deployed, set the dial dependency flag to inform core services that DIAL is active:

```yaml
deployed_dial_addon:  &deployed_dial_addon  "true"
```

**Step 3 — Edit `install.sh` to target only `knowledgebb`**

Open `install.sh` and update the `install_helm_components` function to redeploy only `knowledgebb`:

```bash
function install_helm_components() {
    install_component knowledgebb
}
```

> After deployment revert the `install_helm_components` function in `install.sh` back to its original state after this step to avoid accidentally redeploying only `knowledgebb` in future runs

**Step 4 — Rerun the installer for `knowledgebb`**

```bash
./install.sh install_helm_components
```

This redeploys `knowledgebb` with the updated DIAL configuration included.

***

### Available Add-ons

<table><thead><tr><th width="344">Add-on</th><th>What it adds</th></tr></thead><tbody><tr><td><strong>DIAL</strong></td><td>QR code generation and content linking</td></tr><tr><td><strong>Discussion Forum</strong></td><td>Community discussion threads and group management</td></tr><tr><td><strong>Video Stream Generator</strong></td><td>Video transcoding and HLS stream generation</td></tr><tr><td><em>Obsrv</em></td><td><em>Obsrv is an open-source data telemetry, processing, and analytics platform designed for high-scale reliability.</em></td></tr></tbody></table>

> **Note: Please go through the Obsrv add-on** [**README**](https://github.com/Sunbird-Spark/sunbird-spark-installer/blob/develop/addons/obsrv/README.md) **file for setup**

***

### Further information

All add-ons follow the same installation pattern, Refer the [README](https://github.com/Sunbird-Spark/sunbird-spark-installer/blob/develop/addons/README.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://sunbird.gitbook.io/sunbird-spark/use/getting-started/enabling-add-ons.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
