Add metering to templates (#74)

* Add metering to trustgraph-core component

* Regenerate templates to run metering
This commit is contained in:
cybermaggedon 2024-09-29 19:48:35 +01:00 committed by GitHub
parent 56b3b50e94
commit 6d57b7a6f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 270 additions and 0 deletions

View file

@ -102,5 +102,35 @@ local prompt = import "prompt-template.jsonnet";
},
"metering" +: {
create:: function(engine)
local container =
engine.container("metering")
.with_image(images.trustgraph)
.with_command([
"metering",
"-p",
url.pulsar,
])
.with_limits("0.5", "128M")
.with_reservations("0.1", "128M");
local containerSet = engine.containers(
"metering", [ container ]
);
local service =
engine.internalService(containerSet)
.with_port(8000, 8000, "metrics");
engine.resources([
containerSet,
service,
])
},
} + prompt