Implement /node/register and /node/unregister endpoints, improve boot logic

This commit is contained in:
2025-02-24 21:47:32 -05:00
parent c95a73401e
commit 27c2d38fe1
9 changed files with 284 additions and 5 deletions

32
requests/nodes.http Normal file
View File

@@ -0,0 +1,32 @@
POST http://localhost:3450/node
Content-Type: application/json
{
"hostname": "worker-7.k8s",
"pve_id": 110,
"pve_host": "p-blade01",
"assigned_ip": "172.20.80.8",
"assigned_subnet": 16,
"is_permanent": true
}
###
POST http://localhost:3450/node
Content-Type: application/json
{
"hostname": "worker-4.k8s",
"pve_id": 102,
"pve_host": "p-blade02",
"assigned_ip": "172.20.80.5",
"assigned_subnet": 16,
"is_permanent": true
}
###
DELETE http://localhost:3450/node/worker-4.k8s
Content-Type: application/json
{}
###

40
requests/volumes.http Normal file
View File

@@ -0,0 +1,40 @@
POST http://localhost:3450/volume
Content-Type: application/json
{
"name": "testvol",
"size_in_bytes": 102400
}
###
GET http://localhost:3450/volume/testvol
Accept: application/json
###
POST http://localhost:3450/volume/mount
Content-Type: application/json
{
"name": "testvol",
"mountpoint": "/mounted-testvol"
}
###
POST http://localhost:3450/volume/unmount/testvol
Content-Type: application/json
{}
###
POST http://localhost:3450/volume/transfer/testvol/to/worker-4.k8s
Content-Type: application/json
{}
###
DELETE http://localhost:3450/volume/testvol
Content-Type: application/json
{}
###