> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/rpr/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/rpr/latest/installation/configuration.md).

# RADIUS Proxy chart configuration

This document describes the configurable parameters of the RADIUS Proxy (RPR) chart. This is only the reference documentation of existing configuration options. For more detailed examples of RPR configuration, see the documents in the **Configuration** section in the left navigation panel.

## General chart configuration

RPR provides the following general configuration options:

| Key | Type | Description | Default |
|---|---|---|---|
| replicaCount | int | Number of RPR replicas. | `1` |
| image.repository | string | Repository with the RPR image. | `"registry.cennso.com/cennso/tposs-radius-proxy"` |
| image.tag | string | RPR image tag. | `"v3.1.1"` |
| image.pullPolicy | string | RPR image pull policy. For more information, see the official [Kubernetes documentation](https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy). | `"IfNotPresent"` |
| imagePullSecrets.secret | string | Image Pull Secrets for the RPR deployment. | `"cur-secret"` |
| annotations | object | Annotations to apply to RPR deployment. | `{}` |
| additionalLabels | object | Labels to apply to all resources in the RPR chart. | `{}` |
| 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/#affinity-and-anti-affinity). | `{}` |
| tolerations | list | Ensures pods can be scheduled on the `rpr` tainted node. For more information, see the official [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/). | `[]` |
| service.type | string | RPR deployment service type. For more information, see the official [Kubernetes documentation](https://kubernetes.io/docs/concepts/services-networking/service/). | `"ClusterIP"` |
| service.noneClusterIP | bool | Sets the Kubernetes service type for the RADIUS Proxy deployment. If set to `true`, a [headless service](https://kubernetes.io/docs/concepts/services-networking/service/#headless-services) is deployed along with the RADIUS Proxy deployment instead of a [ClusterIP service](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types). | `false` |
| service.serviceMonitor.enabled | bool | Enables the Prometheus ServiceMonitor. For more information, see the [official documentation](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/developer/getting-started.md#using-servicemonitors). | `false` |
| service.serviceMonitor.targetLabels | list | The list of labels transferred from the associated [Kubernetes Service](https://kubernetes.io/docs/concepts/services-networking/service/) object into the ingested metrics. | `[]` |
| 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). | `{}` |
| probes.enabled | bool | Enables the [readiness and liveness probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/). | `false` |
| rpr_elixir_erl_options | string | Additional parameters for the BEAM virtual machine. For more information, see the [official documentation](https://www.erlang.org/doc/man/erl.html#emulator-flags). | `""` |
| resources.memory_limit | string | RPR memory limit. | `"2Gi"` |
| resources.memory_request | string | RPR memory request. | `"512Mi"` |
| resources.cpu_limit | string | RPR CPU limit. | `"1000m"` |
| resources.cpu_request | string | RPR CPU request. | `"250m"` |
| resources.initScript.limits.cpu | string | The init script container CPU limit. | `"50m"` |
| resources.initScript.limits.memory | string | The init script container memory limit. | `"64Mi"` |
| resources.initScript.requests.cpu | string | The init script container CPU request. | `"50m"` |
| resources.initScript.requests.memory | string | The init script container memory request. | `"64Mi"` |
| resources.debug.limits.cpu | string | The debug container CPU limit. | `"50m"` |
| resources.debug.limits.memory | string | The debug container memory limit. | `"64Mi"` |
| resources.debug.requests.cpu | string | The debug container CPU request. | `"50m"` |
| resources.debug.requests.memory | string | The debug container memory request. | `"64Mi"` |
| resources.pingExporter.limits.cpu | string | The Ping Exporter container CPU limit. | `"100m"` |
| resources.pingExporter.limits.memory | string | The Ping Exporter container memory limit. | `"64Mi"` |
| resources.pingExporter.requests.cpu | string | The Ping Exporter container CPU request. | `"50m"` |
| resources.pingExporter.requests.memory | string | The Ping Exporter container memory request. | `"32Mi"` |
| ipAddr.enabled | bool | Sets a static IP for the pod. If enabled, pod IP is used as the name of the Erlang node. | `false` |
| ipAddr.ip | string | Static IP address. The requested IP addresses are assigned from Calico IPAM and must exist within a configured IP pool. | `"127.0.0.1"` |

## RADIUS configuration

RPR provides the following RADIUS configuration options:

| Key | Type | Description | Default |
|---|---|---|---|
| radius.recbuf | int | Size of the receive buffer in bytes. | `524288` |
| radius.sndbuf | int | Size of the send buffer in bytes. | `524288` |
| radius.client_ports | int | Number of OS level network ports used by RADIUS clients for outgoing requests. | `100` |
| radius.resend_timeout | int | Timeout in milliseconds that specifies how long to store a response in a cache. | `0` |
| radius.histogram_buckets | list | The values configure the upper limits for time intervals of handling incoming RADIUS requests. The limits are translated into Prometheus histogram buckets. The values are provided in milliseconds. | `[10,50,100,1000,5000,15000]` |
| radius.unreachable_timeout | int | Timeout in milliseconds that specifies how long a RADIUS server is marked as inactive before it continues to forward RADIUS requests. | `60000` |
| auth | object | List of RADIUS servers for Authentication requests routing. | `{}` |
| acct | object | List of RADIUS servers for Accounting requests routing. | `{}` |
| coa | object | List of RADIUS servers for CoA/Disconnect requests routing. | `{}` |
| pool | object | List of secondary RADIUS servers for failover scenarios. | `{}` |

For more information, see the [RADIUS Proxy settings](https://docs.cennso.com/components/rpr/latest/configuration/proxy-settings.md) document.

## HTTP API configuration

RPR provides the following HTTP API configuration options:

| Key | Type | Description | Default |
|---|---|---|---|
| eradiusd_http_api.enabled | bool | Enables HTTP listener to access RPR HTTP API. | `true` |
| eradiusd_http_api.host | string | RPR HTTP listener address. | `"0.0.0.0"` |
| eradiusd_http_api.port | int | RPR HTTP listener port. | `8081` |
| eradiusd_http_api.rtt_buckets | list | Time values in milliseconds showing how many HTTP requests were handled in that period. | `[5,10,20,50,100,1000]` |

## Logging configuration

RPR provides the following configuration options to control the logging behaviour:

| Key | Type | Description | Default |
|---|---|---|---|
| log.console.level | string | Logging level for the RPR logger. The supported log levels are: `emergency`, `alert`, `critical`, `error`, `warning`, `notice`, `info`, and `debug`. | `"error"` |
| log.console.format | string | Format of the RPR logs. The available formats are `default`, `json`, or a string that defines a custom format. | `"$time [$level] [code=$code] $msg"` |
| log.console.sync_mode_queue_len | int | Number of log messages in the RPR log handler queue after which it switches to the sync mode. | `500` |
| log.console.drop_mode_queue_len | int | Number of log messages in the RPR log handler queue after which it starts to drop the messages. | `500` |
| log.console.flush_queue_len | int | Number of log messages in the RPR log handler queue after which it starts to flush the messages. | `1000` |
| log.console.burst_limit_max_count | int | Maximum number of log messages that can be handled within the time specified in **log.console.burst_limit_window_time**. | `500` |
| log.console.burst_limit_window_time | int | Time window in milliseconds during which the burst limit applies. The burst limit is specified in **log.console.burst_limit_max_count**. | `1000` |

For more information, see the [Logging configuration](https://docs.cennso.com/components/rpr/latest/configuration/logging.md) document.

## NATS exporters configuration

>**CAUTION:** This feature is experimental. The state is alpha and not recommended for the production environment.

RPR provides support for publishing incoming RADIUS requests to [NATS](https://nats.io/). You can configure the NATS exporters using these configuration options:

| Key | Type | Description | Default |
|---|---|---|---|
| nats.exporters | list | List of NATS exporters. | `[]` |

For more information, see the [Integration with NATS](https://docs.cennso.com/components/rpr/latest/configuration/nats.md) document.

## Debug container with network utilities

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

| Key | Type | Description | Default |
|---|---|---|---|
| debug.enabled | bool | Enables the debug container with network utilities. | `true` |
| debug.image.repository | string | Network utilities image repository | `"registry.cennso.com/cennso/nettools"` |
| debug.image.tag | string | Network utilities image tag | `"v1.16.0"` |
| debug.image.pullPolicy | string | Network utilities image pull policy | `"IfNotPresent"` |

The following additional utilities are installed within the `rpr-debugging-sidecar` container:

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

## Init script configuration

RPR provides support for running the `init script` that executes the initialization job before the main RPR deployment is up and running. The following configuration options are supported:

| Key | Type | Description | Default |
|---|---|---|---|
| initScript.enabled | bool | Enables the init script before the start of the RPR instance. | `false` |
| initScript.image.repository | string | Image repository for the `initScript` container. | `"registry.cennso.com/cennso/nettools"` |
| initScript.image.tag | string | Image tag for the `initScript` container. | `"v1.16.0"` |
| initScript.image.pullPolicy | string | Image pull policy for the `initScript` container. | `"IfNotPresent"` |
| initScript.env | object | Environment variables with which the init script is launched. | `{}` |
| initScript.script | string | The script code itself. | `"echo \"missing configuration script\"\n"` |

## Ping Exporter configuration

RPR chart provides the Ping Exporter container used to gather metrics for ICMP echo requests in the [Prometheus](https://prometheus.io/)-compatible format. The following configuration options are exposed:

| Key | Type | Description | Default |
|---|---|---|---|
| pingExporter.enabled | bool | Enables the Ping Exporter container. | `false` |
| pingExporter.image.repository | string | Image repository for the Ping Exporter container. | `"registry.cennso.com/cennso/ping-exporter"` |
| pingExporter.image.tag | string | Image tag for the Ping Exporter container. | `"v0.7.0"` |
| pingExporter.image.pullPolicy | string | Image pull policy for the Ping Exporter container. | `"IfNotPresent"` |
| pingExporter.service.annotations | object | The Ping Exporter container service annotations. | `{}` |
| pingExporter.config | object | The Ping Exporter container configuration. For more information, see the [official documentation](https://github.com/travelping/ping-exporter?tab=readme-ov-file#configuration-parameters). | `{}` |
