> This page is for NVIDIA Background Noise Removal on Holoscan for Media, version 2.0.0 (Latest) (default).
> For other versions, use one of these documentation indexes:
> - 2.0.0 (Latest) (default): https://docs.nvidia.com/nim/maxine/bnr-h4m/2.0.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nim/maxine/llms.txt.

# Common Values

The following values are common to BNR NIM service chart deployment.

## Workload Placement

| Value | Type | Description | Example |
|-------|------|-------------|---------|
| `appName` | string | Name used for Kubernetes resources. | `nvidia-bnr-nim-nmos` |
| `replicas` | integer | Number of NIM pods. BNR is generally deployed as one pod per media stream. | `1` |
| `nodeSelector.hostname` | string | Node hostname shortcut used by the chart. | `example-gpu-node` |
| `schedulerName` | string | Kubernetes scheduler name. | `topo-aware-scheduler` |

## Image

| Value | Type | Description | Default |
|-------|------|-------------|---------|
| `image.repository` | string | BNR NIM container image repository. | `nvcr.io/nim/nvidia/bnr-h4m` |
| `image.tag` | string | BNR NIM container image tag. | `"2.0.0"` |
| `image.pullPolicy` | string | Kubernetes image pull policy. | `IfNotPresent` |
| `image.secret` | string | Image pull secret for `nvcr.io`. | `ngc-image-secret` |


## Model Download

| Value | Type | Description | Default |
|-------|------|-------------|---------|
| `ngc.secretName` | string | Generic secret containing `NGC_API_KEY`. | `ngc-api-key` |
| `model.type` | string | BNR model variant. | `v2-48k` |

Create the model pull secret:

```bash
kubectl create secret generic ngc-api-key \
  --from-literal=NGC_API_KEY=$NGC_API_KEY \
  -n <your-namespace>
```

## Network

| Value | Type | Description | Example |
|-------|------|-------------|---------|
| `network.name` | string | Multus `NetworkAttachmentDefinition` for ST 2110 traffic. | `media-a-tx-net` |
| `input.audio.localInterfaceName` | string | Interface name inside the pod for input media traffic. | `net1` |
| `output.audio.localInterfaceName` | string | Interface name inside the pod for output media traffic. | `net1` |

## Service Endpoints

The service chart creates an endpoint Service named `<appName>-endpoint` when `service.enabled=true`. The NIM HTTP API is always exposed by this Service. The NMOS Node API is exposed only when `nmos.enabled=true`.

| Value | Type | Description | Default |
|-------|------|-------------|---------|
| `service.enabled` | boolean | Creates the endpoint Service. | `true` |
| `service.type` | string | Kubernetes Service type. | `NodePort` |
| `service.port` | integer | NMOS Node API Service port when `nmos.enabled=true`. | `9010` |
| `service.nodePort` | integer | Optional NMOS Node API NodePort when `nmos.enabled=true` and `service.type` is `NodePort`. | `32515` |
| `service.nimHttpPort` | integer | NIM HTTP API Service port, including `/intensity_ratio`, `/v1/health/*`, and `/v1/metrics`. | `8000` |
| `service.nimHttpNodePort` | integer | NodePort for the NIM HTTP API when `service.type` is `NodePort`. | `32516` |

## Storage

| Value | Description |
|-------|-------------|
| `nimModelCache.enabled` | Enables a PVC for downloaded model artifacts. |
| `nimModelCache.size` | Requested model cache PVC size. |
| `nimLogs.enabled` | Enables a PVC for NIM logs. |
| `nimLogs.size` | Requested log PVC size. |

## Security Context

The BNR NIM requires capabilities used by the media and Rivermax stack. The chart sets the required capability list in the deployment template and exposes the basic container security context through `containerSecurityContext`:

```yaml
containerSecurityContext:
  runAsUser: 1000
  runAsGroup: 1000
  runAsNonRoot: true
  allowPrivilegeEscalation: true
```

The rendered container drops all capabilities and adds `IPC_LOCK`, `NET_RAW`, `SYS_NICE`, and `DAC_READ_SEARCH`.