mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-03 15:01:00 +02:00
git-subtree-dir: ai-context/trustgraph-templates git-subtree-split: 42a5fd1b678f32be378062e30451e2052ccb95dd
45 lines
1.1 KiB
Jsonnet
45 lines
1.1 KiB
Jsonnet
local images = import "values/images.jsonnet";
|
|
|
|
{
|
|
|
|
"loki" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
local vol = engine.volume("loki-data").with_size("20G");
|
|
|
|
local cfgVol = engine.configVolume(
|
|
"loki-cfg", "loki",
|
|
{
|
|
"local-config.yaml": importstr "loki/local-config.yaml",
|
|
}
|
|
);
|
|
|
|
local container =
|
|
engine.container("loki")
|
|
.with_image(images.loki)
|
|
.with_limits("0.5", "256M")
|
|
.with_reservations("0.1", "256M")
|
|
.with_port(3100, 3100, "http")
|
|
.with_volume_mount(cfgVol, "/etc/loki/")
|
|
.with_volume_mount(vol, "/loki");
|
|
|
|
local containerSet = engine.containers(
|
|
"loki", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.service(containerSet)
|
|
.with_port(3100, 3100, "http");
|
|
|
|
engine.resources([
|
|
cfgVol,
|
|
vol,
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
},
|
|
|
|
}
|
|
|