mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
Added templates which produce K8s resources. With the provided GCP wrapper, it works on GCP K8s cluster. This isn't stable enough for other folks to use so will need more piloting before it can be documented and released.
41 lines
1.1 KiB
Jsonnet
41 lines
1.1 KiB
Jsonnet
local base = import "base/base.jsonnet";
|
|
local images = import "values/images.jsonnet";
|
|
|
|
{
|
|
|
|
"pulsar" +: {
|
|
|
|
create:: function(engine)
|
|
|
|
// FIXME: Should persist something?
|
|
// local volume = engine.volume(...)
|
|
|
|
local container =
|
|
engine.container("pulsar")
|
|
.with_image(images.pulsar_manager)
|
|
.with_environment({
|
|
SPRING_CONFIGURATION_FILE: "/pulsar-manager/pulsar-manager/application.properties",
|
|
})
|
|
.with_limits("0.5", "1.4G")
|
|
.with_reservations("0.1", "1.4G")
|
|
.with_port(9527, 9527, "api")
|
|
.with_port(7750, 7750, "api2");
|
|
|
|
local containerSet = engine.containers(
|
|
"pulsar", [ container ]
|
|
);
|
|
|
|
local service =
|
|
engine.service(containerSet)
|
|
.with_port(9527, 9527, "api")
|
|
.with_port(7750, 7750, "api2);
|
|
|
|
engine.resources([
|
|
containerSet,
|
|
service,
|
|
])
|
|
|
|
}
|
|
|
|
}
|
|
|