Initial commit
This commit is contained in:
6
data/auth/nodes/host-1.json
Normal file
6
data/auth/nodes/host-1.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"node_id": "host-1",
|
||||
"token": "dev-node-token",
|
||||
"schema_version": "v1",
|
||||
"updated_at": "2026-04-05T00:00:00.000Z"
|
||||
}
|
||||
16
data/resources/nodes/host-1.json
Normal file
16
data/resources/nodes/host-1.json
Normal 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"
|
||||
}
|
||||
18
data/resources/services/service-web.json
Normal file
18
data/resources/services/service-web.json
Normal 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"
|
||||
}
|
||||
26
data/resources/tenants/example-tenant.json
Normal file
26
data/resources/tenants/example-tenant.json
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user