Skip to content

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.

The current chart grants the Discovery Agent:

  • get, list, watch on namespaces
  • get, list, watch on nodes
  • get, list, watch on pods and pods/log
  • get, list, watch on services
  • get, list, watch on configmaps
  • get, list, watch on secrets
  • get, list, watch on events
  • get, list, watch on deployments and replicasets
  • get, list, watch on horizontalpodautoscalers
  • get, list, watch on jobs and cronjobs
  • get, list, watch on ingresses and networkpolicies
  • get, list, watch on selected RBAC objects
  • get, list, watch, create, update, patch on leases for leader election

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.

The current chart grants the Scaling Rules Agent:

  • get, list, watch on pods
  • get, list, watch, update, patch on deployments
  • get, list, watch, create, update, patch, delete on horizontalpodautoscalers

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 reads Kubernetes context to associate host-observed runtime telemetry with workloads. The current chart grants get and list on:

  • pods, services and endpoints
  • endpointslices
  • jobs
  • replicasets

Node Agent also requires privileged host access for its eBPF-based collection. See Node Agent for the full host-access requirements.

  • 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.

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 Forbidden errors on HPAs or Deployments