> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/dpr/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/dpr/latest/installation/configuration.md).

# Diameter Proxy chart configuration

This document describes the configurable parameters of the Diameter Proxy (DPR) chart.

This is only the reference documentation of existing configuration options. For more detailed examples of DPR configuration, see the documents in the **Configuration** section in the left navigation panel.

## General chart configuration

The following table shows the configurable DPR chart parameters that you can use to configure Diameter routing.

| Key | Type | Description | Default |
|---|---|---|---|
| imagePullSecrets | list | Image Pull Secrets for the DPR deployment. For more information, see the official [documentation](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod). | `[]` |
| annotations | object | Annotations to apply to DPR deployment. For more information, see the official [documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/). | `{}` |
| additionalLabels | object | Labels to apply to all resources in the DPR chart. For more information, see the official [documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/). | `{}` |
| tolerations | list | Ensures pods can be scheduled on the `dpr` tainted node. For more information, see the official [documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) | `[]` |
| affinity | object | Assigns pods to the given nodes. For more information, see the official [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node). | `{}` |
| nodeSelector | object | Selector for the node where Diameter Proxy should be deployed. For more information, read the official [documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) | `{}` |
| service.type | string | DPR deployment service type. # For more information, see the official [Kubernetes documentation](https://kubernetes.io/docs/concepts/services-networking/service/). | `"ClusterIP"` |
| service.clusterIP | string | Specifies [ClusterIP](https://kubernetes.io/docs/concepts/services-networking/cluster-ip-allocation/) for Diameter Proxy Service if **service.type** is set to `ClusterIP`. | `""` |
| service.serviceMonitor.enabled | bool | Enables or disables the Prometheus [ServiceMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/getting-started/design.md?plain=1#L60). | `false` |
| service.serviceMonitor.targetLabels | list | Target labels for ServiceMonitor. | `[]` |
| service.serviceMonitor.namespaceSelector | object | ServiceMonitor [namespace selector](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/running-exporters.md#generic-servicemonitor-example) | `{}` |
| calico.ipAddr | bool | Static IP address. The requested IP addresses are assigned from Calico IPAM and must exist within a configured IP pool. | `false` |
| securityContext.capabilities.add | list | Configure a Security Context for DPR deployment. For more information, see the [official documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `["NET_ADMIN"]` |
| unsafeSysctls.enabled | bool | Enables [unsafe sysctls](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/) for DPR deployment. | `false` |
| unsafeSysctls.items | string | Set of sysctls to populate the `security.alpha.kubernetes.io/unsafe-sysctls` annotation. | `""` |
| nameOverride | string | Replaces the default application name and fully qualified application name, if present. | `""` |
| fullnameOverride | string | Replaces the default, fully qualified application name, if present. | `""` |
| resources.diameter_proxy.requests.cpu | string | Container CPU requests | `"100m"` |
| resources.diameter_proxy.requests.memory | string | Container memory requests | `"128Mi"` |
| resources.diameter_proxy.limits.cpu | string | Container CPU limit | `"300m"` |
| resources.diameter_proxy.limits.memory | string | Container memory limit | `"256Mi"` |
| resources.endpoints_watcher.requests.cpu | string | Container CPU requests | `"250m"` |
| resources.endpoints_watcher.requests.memory | string | Container memory requests | `"256Mi"` |
| resources.endpoints_watcher.limits.cpu | string | Container CPU limit | `"250m"` |
| resources.endpoints_watcher.limits.memory | string | Container memory limit | `"256Mi"` |
| resources.pcap.requests.cpu | string | Container CPU requests | `"150m"` |
| resources.pcap.requests.memory | string | Container memory requests | `"64Mi"` |
| resources.pcap.limits.cpu | string | Container CPU limit | `"200m"` |
| resources.pcap.limits.memory | string | Container memory limit | `"128Mi"` |
| resources.debug.limits.cpu | string | Container CPU limit | `"50m"` |
| resources.debug.limits.memory | string | Container memory limit | `"64Mi"` |
| resources.debug.requests.cpu | string | Container CPU requests | `"50m"` |
| resources.debug.requests.memory | string | Container memory requests | `"64Mi"` |

## Diameter server and routing configuration

The following table shows the configurable DPR chart parameters that you can use to configure Diameter routing.

| Key | Type | Description | Default |
|---|---|---|---|
| diameter_proxy.image.repository | string | Container image repository. | `"registry.cennso.com/cennso/diameter_proxy"` |
| diameter_proxy.image.tag | string | Container image tag | `"v1.3.0"` |
| diameter_proxy.image.pullPolicy | string | Image pull policy. For more information, see the official [Kubernetes documentation](https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy). | `"IfNotPresent"` |
| diameter_proxy.origin_host | string | The IP address or FQDN identifying this Diameter Proxy node. The value is used in the [Origin-Host AVP](https://datatracker.ietf.org/doc/html/rfc6733#section-6.3). | `"proxy.mnc001.mcc001.3gppnetwork.org"` |
| diameter_proxy.origin_realm | string | Origin realm of the Diameter Proxy node. The value is used in the [Origin-Realm AVP](https://datatracker.ietf.org/doc/html/rfc6733#section-6.4). | `"mnc001.mcc001.3gppnetwork.org"` |
| diameter_proxy.realms | object | The list of mappings between destination realms and destination hosts to support routing of the incoming Diameter messages. | `{}` |
| diameter_proxy.transports | list | The list of Diameter agent endpoint transports, which defines how Diameter Proxy establishes and manages connections with other Diameter agents. | `[]` |
| diameter_proxy.metrics.rtt_histogram_buckets | list | The values configure the upper limits for time intervals of handling Diameter requests. The limits are translated into Prometheus histogram buckets. The values are provided in milliseconds. | `[5,25,50,100,250,1000]` |
| diameter_proxy.env.sname | string | [Short name](https://www.erlang.org/doc/apps/erts/erl_cmd#sname) for the Diameter Proxy node. | `"diameter_proxy"` |
| diameter_proxy.env.service | string | The name for the `SERVICE` environment variable. | `"diameter_proxy"` |
| diameter_proxy.sticky_session_setup | bool | Enables support for sticky sessions. | `false` |

For more information, see the [Transports and routing configuration](https://docs.cennso.com/components/dpr/latest/configuration/routing.md) document.

## Erlang/OTP VM parameters

The table below lists the [parameters](https://www.erlang.org/docs/25/man/erl#emulator-flags) that you can pass to the underlying Erlang/OTP VM:

| Key | Type | Description | Default |
|---|---|---|---|
| diameter_proxy_erl_options | string | Additional parameters for the BEAM virtual machine. The value of this configuration will be set in the `ERL_FLAGS` environment variable. | `""` |

## Configuration of the `endpoints_watcher` sidecar

These parameters configure the [`endpoints_watcher`](https://docs.cennso.com/components/dpr/latest/configuration/endpoints-watcher.md) sidecar container:

| Key | Type | Description | Default |
|---|---|---|---|
| endpoints_watcher.enabled | bool | Enables the endpoints_watcher container | `true` |
| endpoints_watcher.image | string | Container image repository | `"registry.cennso.com/cennso/diameter_proxy/endpoints_watcher"` |
| endpoints_watcher.tag | string | Container tag | `"v1.3.0"` |
| endpoints_watcher.resyncSeconds | int | Period in seconds which configures how often the watcher reports the current state of all watched endpoints to DPR. Set it to `0` to disable periodic resync. | `30` |
| endpoints_watcher.notify.maxAttempts | int | The number of times the watcher retries a single notification to DPR in case of a failure. The value must be greater than or equal to `1`. | `5` |
| endpoints_watcher.notify.retryDelaySeconds | int | The number of seconds the watcher waits before it retries to send a notification. | `2` |
| endpoints_watcher.notify.timeoutSeconds | int | The timeout (in seconds) for sending a notification to DPR. The value must be greater than or equal to `1`. | `5` |

## DPR init script configuration

The following table shows configuration options related to the DPR init script [init container](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/):

| Key | Type | Description | Default |
|---|---|---|---|
| initScript.enabled | bool | Enables the init script on the DPR launch. | `false` |
| initScript.image.repository | string | Container image repository | `"registry.cennso.com/cennso/nettools"` |
| initScript.image.tag | string | Container image tag | `"v1.19.0"` |
| initScript.image.pullPolicy | string | Image pull policy | `"IfNotPresent"` |
| initScript.script | string | Code of the init script | `"echo \"missing configuration script\"\n"` |

## Traffic capturing

These parameters define how PCAP files are captured from node-level traffic.

| Key | Type | Description | Default |
|---|---|---|---|
| pcap.enabled | bool | Enables or disables the container | `false` |
| pcap.image.repository | string | Container image repository | `"registry.cennso.com/cennso/pcap"` |
| pcap.image.tag | string | Container image tag | `"v1.3.1"` |
| pcap.image.pullPolicy | string | Image pull policy | `"IfNotPresent"` |
| pcap.maxfilenum | int | Maximum number of files before overwriting | `5` |
| pcap.maxfilesize | int | Maximum files size before overwriting | `10` |
| pcap.iface | string | Interface to monitor | `"mno0 mvno0"` |

## Debug container with networking utilities

DPR provides additional `debug` container with some handy networking tools installed. You can configure the container
using these configuration options:

| Key | Type | Description | Default |
|---|---|---|---|
| debug.enabled | bool | Enables network utilities container | `false` |
| debug.image.repository | string | Container image repository | `"registry.cennso.com/cennso/nettools"` |
| debug.image.tag | string | Container image tag | `"v1.19.0"` |
| debug.image.pullPolicy | string | Image pull policy | `"IfNotPresent"` |

The following additional utilities are installed within the `debug` container:

- `bpfc`
- `curl`
- `drill`
- `iperf3`
- `iproute2`
- `netsniff-ng`
- `socat`
- `tcpdump`
- `telnet`
- `trafgen`
