Required Permissions
The public chart intentionally splits permissions by agent. Discovery and Node Agent are read-only from the Kubernetes API perspective. Scaling needs mutation rights for HPAs and some Deployment replica updates.
Discovery Agent RBAC scope
Section titled “Discovery Agent RBAC scope”The current chart grants the Discovery Agent:
get,list,watchonnamespacesget,list,watchonnodesget,list,watchonpodsandpods/logget,list,watchonservicesget,list,watchonconfigmapsget,list,watchonsecretsget,list,watchoneventsget,list,watchondeploymentsandreplicasetsget,list,watchonhorizontalpodautoscalersget,list,watchonjobsandcronjobsget,list,watchoningressesandnetworkpoliciesget,list,watchon selected RBAC objectsget,list,watch,create,update,patchonleasesfor leader election
Why pods/log access exists
Section titled “Why pods/log access exists”The Discovery Agent reads failed Job pod logs so Moonin can attach failure context to CronJob execution history. It does not archive full cluster logs.
Scaling Rules Agent RBAC scope
Section titled “Scaling Rules Agent RBAC scope”The current chart grants the Scaling Rules Agent:
get,list,watchonpodsget,list,watch,update,patchondeploymentsget,list,watch,create,update,patch,deleteonhorizontalpodautoscalers
Why Deployment mutation is required
Section titled “Why Deployment mutation is required”The Scaling Rules Agent may raise or restore Deployment replica counts while applying or reverting an HPA-based scaling window. This keeps the workload aligned with the requested minimum or the stored baseline.
Node Agent RBAC scope
Section titled “Node Agent RBAC scope”Node Agent reads Kubernetes context to associate host-observed runtime telemetry with workloads. The current chart grants get and list on:
pods,servicesandendpointsendpointslicesjobsreplicasets
Node Agent also requires privileged host access for its eBPF-based collection. See Node Agent for the full host-access requirements.
Permission boundaries
Section titled “Permission boundaries”- Discovery does not need permission to mutate workloads.
- Node Agent does not mutate Kubernetes resources.
- Scaling does not need broad inventory permissions beyond the resources involved in HPA execution.
- The chart is the recommended source of truth for RBAC because the exact permissions are tied to the current supported agent behavior.
Practical validation after install
Section titled “Practical validation after install”After installing the chart, validate both permission sets by confirming that:
- namespaces and Deployments appear in Moonin
- node snapshots and CronJob executions populate correctly
- scaling templates can apply and revert without
Forbiddenerrors on HPAs or Deployments