mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-30 10:56:23 +02:00
Librarian (#304)
This commit is contained in:
parent
e99c0ac238
commit
a0bf2362f6
32 changed files with 922 additions and 66 deletions
|
|
@ -1,7 +1,8 @@
|
|||
local base = import "base/base.jsonnet";
|
||||
local images = import "values/images.jsonnet";
|
||||
local minio = import "stores/minio.jsonnet";
|
||||
|
||||
{
|
||||
minio {
|
||||
|
||||
etcd +: {
|
||||
|
||||
|
|
@ -47,47 +48,6 @@ local images = import "values/images.jsonnet";
|
|||
|
||||
},
|
||||
|
||||
mino +: {
|
||||
|
||||
create:: function(engine)
|
||||
|
||||
local vol = engine.volume("minio-data").with_size("20G");
|
||||
|
||||
local container =
|
||||
engine.container("minio")
|
||||
.with_image(images.minio)
|
||||
.with_command([
|
||||
"minio",
|
||||
"server",
|
||||
"/minio_data",
|
||||
"--console-address",
|
||||
":9001",
|
||||
])
|
||||
.with_environment({
|
||||
MINIO_ROOT_USER: "minioadmin",
|
||||
MINIO_ROOT_PASSWORD: "minioadmin",
|
||||
})
|
||||
.with_limits("0.5", "128M")
|
||||
.with_reservations("0.25", "128M")
|
||||
.with_port(9001, 9001, "api")
|
||||
.with_volume_mount(vol, "/minio_data");
|
||||
|
||||
local containerSet = engine.containers(
|
||||
"etcd", [ container ]
|
||||
);
|
||||
|
||||
local service =
|
||||
engine.service(containerSet)
|
||||
.with_port(9001, 9001, "api");
|
||||
|
||||
engine.resources([
|
||||
vol,
|
||||
containerSet,
|
||||
service,
|
||||
])
|
||||
|
||||
},
|
||||
|
||||
milvus +: {
|
||||
|
||||
create:: function(engine)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue