Skip to content

interTwin-eu/kubernetes-usage-accounting

 
 

Repository files navigation

Kubernetes Usage Accounting

Kubernetes Usage Accounting accounting tools.

Required settings

See notebooks-accounting/values.yaml for Helm package values.

Enable APEL accounting:

ssm:
  # enable APEL sender
  schedule: 42 1 * * *
  hostcert: ...
  hostkey: ...

Enable EOSC accounting:

eosc:
  schedule: 42 1 * * *
  tokenUrl:
  clientId:
  clientSecret:
  accountingUrl:
  installationId:
  flavorMetrics:
    flavor1: id1
    ...

Debugging

Verbosity:

debug: true

Create APEL dumps even without enabled ssm:

storage:
  apelSpool: /accounting/ssm

Local database export to /accounts/notebooks.db is enabled by default. It can be disabled by setting the location to empty value:

storage:
  notebooksDb:

FQAN configuration

FQAN filed mapping for accounting.

By default the values are taken from primary_group field (=the first matched OIDC role in hub config allowed_groups).

Example (multiple values per FQAN possible, separated by comma):

accounting:
  # default_fqan: vo.notebooks.egi.eu
  # fqan_key: primary_group
  fqan:
    vo.access.egi.eu: urn:mace:egi.eu:group:vo.access.egi.eu:role=member#aai.egi.eu
    vo.notebooks.egi.eu: urn:mace:egi.eu:group:vo.notebooks.egi.eu:role=member#aai.egi.eu

About

Accounting for Kubernetes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.1%
  • Smarty 6.2%
  • Dockerfile 0.7%