Initial commit

This commit is contained in:
2026-04-05 15:28:04 +02:00
commit 0435b3d07d
43 changed files with 4394 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{
"node_id": "host-1",
"token": "dev-node-token",
"schema_version": "v1",
"updated_at": "2026-04-05T00:00:00.000Z"
}

View File

@@ -0,0 +1,16 @@
{
"id": "host-1",
"resource_type": "node",
"schema_version": "v1",
"desired_state": {
"enabled": true,
"labels": {
"role": "local"
}
},
"current_state": {},
"last_applied_state": {},
"metadata": {},
"created_at": "2026-04-05T00:00:00.000Z",
"updated_at": "2026-04-05T00:00:00.000Z"
}

View File

@@ -0,0 +1,18 @@
{
"id": "service-web",
"resource_type": "service",
"schema_version": "v1",
"desired_state": {
"tenant_id": "example-tenant",
"service_kind": "nginx",
"image": "nginx:alpine",
"networks": [],
"volumes": [],
"resource_limits": null
},
"current_state": {},
"last_applied_state": {},
"metadata": {},
"created_at": "2026-04-05T00:00:00.000Z",
"updated_at": "2026-04-05T00:00:00.000Z"
}

View File

@@ -0,0 +1,26 @@
{
"id": "example-tenant",
"resource_type": "tenant",
"schema_version": "v1",
"desired_state": {
"display_name": "Example Tenant",
"deployment_policy": {
"target_node_id": "host-1"
},
"service_ids": [
"service-web"
],
"compose": {
"tenant_id": "example-tenant",
"compose_file": "services:\n web:\n image: nginx:alpine\n restart: unless-stopped\n ports:\n - \"${NGINX_PORT}:80\"\n",
"env": {
"NGINX_PORT": "8081"
}
}
},
"current_state": {},
"last_applied_state": {},
"metadata": {},
"created_at": "2026-04-05T00:00:00.000Z",
"updated_at": "2026-04-05T00:00:00.000Z"
}