Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uselagoon/storage-calculator
Replacement for the storage-calculator in Lagoon
https://github.com/uselagoon/storage-calculator
Last synced: about 2 months ago
JSON representation
Replacement for the storage-calculator in Lagoon
- Host: GitHub
- URL: https://github.com/uselagoon/storage-calculator
- Owner: uselagoon
- Created: 2022-09-15T06:53:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T23:32:51.000Z (8 months ago)
- Last Synced: 2024-05-02T16:09:29.253Z (8 months ago)
- Language: Go
- Homepage:
- Size: 124 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Storage Calculator
A replacement for the Lagoon storage-calculator service that runs in remote clusters
Individual namespaces can have the following labels to change the behaviour of storage calculator
* `lagoon.sh/storageCalculatorEnabled` if set to false, will exclude it from having its volumes calculated
* `lagoon.sh/storageCalculatorIgnoreRegex` this will override the default regex (if one is set)Storage-calculator pods created by this controller get a label of `lagoon.sh/storageCalculator=true`
Storage-calculator connects to rabbitmq in lagoon-core and publishes to the actions-handler `lagoon-actions` exchange for the actions-handler in core to process.
```
#example payload
{
"type": "updateEnvironmentStorage",
"eventType": "environmentStorage",
"data": {
"claims": [{
"environment": 1,
"persistentStorageClaim": "nginx",
"bytesUsed": 1200
}, {
"environment": 1,
"persistentStorageClaim": "solr",
"bytesUsed": 2200
}, {
"environment": 1,
"persistentStorageClaim": "mariadb",
"bytesUsed": 3200
}]
}
}
```