mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-19 02:01:02 +02:00
Broadly working in k8s on GCP
This commit is contained in:
parent
614ffc0fd3
commit
8b48a12619
22 changed files with 221 additions and 21 deletions
|
|
@ -16,10 +16,10 @@ local images = import "values/images.jsonnet";
|
|||
.with_command(["bin/pulsar", "standalone"])
|
||||
// .with_command(["/bin/sh", "-c", "sleep 9999999"])
|
||||
.with_environment({
|
||||
"PULSAR_MEM": "-Xms700M -Xmx700M"
|
||||
"PULSAR_MEM": "-Xms600M -Xmx600M"
|
||||
})
|
||||
.with_limits("1.0", "1500M")
|
||||
.with_reservations("0.5", "1500M")
|
||||
.with_limits("2.0", "1500M")
|
||||
.with_reservations("1.0", "1500M")
|
||||
// .with_volume_mount(confVolume, "/pulsar/conf")
|
||||
.with_volume_mount(dataVolume, "/pulsar/data")
|
||||
.with_port(6650, 6650, "bookie")
|
||||
|
|
@ -31,11 +31,10 @@ local images = import "values/images.jsonnet";
|
|||
.with_command([
|
||||
"sh",
|
||||
"-c",
|
||||
"sleep 1000000",
|
||||
// "pulsar-admin --admin-url http://pulsar:8080 tenants create tg && pulsar-admin --admin-url http://pulsar:8080 namespaces create tg/flow && pulsar-admin --admin-url http://pulsar:8080 namespaces create tg/request && pulsar-admin --admin-url http://pulsar:8080 namespaces create tg/response && pulsar-admin --admin-url http://pulsar:8080 namespaces set-retention --size -1 --time 3m tg/response",
|
||||
"while true; do pulsar-admin --admin-url http://pulsar:8080 tenants create tg ; pulsar-admin --admin-url http://pulsar:8080 namespaces create tg/flow ; pulsar-admin --admin-url http://pulsar:8080 namespaces create tg/request ; pulsar-admin --admin-url http://pulsar:8080 namespaces create tg/response ; pulsar-admin --admin-url http://pulsar:8080 namespaces set-retention --size -1 --time 3m tg/response; sleep 20; done",
|
||||
])
|
||||
.with_limits("2", "256M")
|
||||
.with_reservations("0.1", "256M");
|
||||
.with_limits("1", "400M")
|
||||
.with_reservations("0.1", "400M");
|
||||
|
||||
local containerSet = engine.containers(
|
||||
"pulsar",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue