Implement /node/register and /node/unregister endpoints, improve boot logic
This commit is contained in:
32
requests/nodes.http
Normal file
32
requests/nodes.http
Normal 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
40
requests/volumes.http
Normal 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
|
||||
|
||||
{}
|
||||
|
||||
###
|
||||
Reference in New Issue
Block a user