mirror of
https://github.com/malarinv/iperf3-monitor.git
synced 2026-03-07 21:12:34 +00:00
- Modified `exporter/exporter.py` to use `list_namespaced_pod()` instead of `list_pod_for_all_namespaces()`. This resolves the RBAC error where the exporter was incorrectly requesting cluster-scoped pod listing permissions. - The exporter now correctly lists pods only within the namespace specified by the `IPERF_SERVER_NAMESPACE` environment variable. - Reverted Helm chart RBAC templates (`charts/iperf3-monitor/templates/rbac.yaml`) and `values.yaml` to their simpler, original state. The previous parameterization of `serviceAccount.namespace` is no longer needed, as the primary fix is in the exporter code. The Helm chart should be deployed into the same namespace where the `iperf3-monitor` ServiceAccount resides and where iperf3 server pods are located. The `IPERF_SERVER_NAMESPACE` environment variable for the exporter pod must be set to this namespace.