Add a node pool to a cluster
Adds count whole-host nodes of one SKU, a GPU model or a whole-host CPU SKU, in the cluster's data center, and answers 202 with the new pool as creating. A cluster that is creating, deleting or failed answers 409 INVALID_CLUSTER_STATE; a failed cluster has no control plane to join. A legacy API key needs clusters:write.
Required permission
Requires the kubernetes.write permission. See Permissions for the roles and API key permissions that include it.
Command line
The orl CLI wraps this endpoint:
orl kube node-pool create <id> --count <count> --name <name> --sku <sku>apiKeyAuthorizationBearer <token>OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).
id*stringapplication/json- body
name*string^[a-z]([a-z0-9-]*[a-z0-9])?$1 <= length <= 63sku*What every node in a pool is: exactly one of gpuModelId or cpuSku. Nodes are whole hosts, so a GPU node is a host of that model with every GPU passed through to it, and a CPU node is a whole CPU host. A cluster mixes SKUs through several pools.
1 <= properties <= 1count*integerNumber of whole-host nodes.
1 <= value <= 100Creation started
application/json- response
A set of identical whole-host nodes in one cluster.
id*stringclusterId*stringname*stringsku*What every node in a pool is: exactly one of gpuModelId or cpuSku. Nodes are whole hosts, so a GPU node is a host of that model with every GPU passed through to it, and a CPU node is a whole CPU host. A cluster mixes SKUs through several pools.
1 <= properties <= 1count*integerNodes the pool holds once it converges.
readyCount*integerNodes that joined the cluster and are Ready.
status*string"creating""ready""scaling""deleting""failed"createdAt*stringcurl -X POST 'https://api.openrelay.inc/v1/kubernetes/clusters/string/node-pools' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "sku": {}, "count": 1}'{ "id": "string", "clusterId": "string", "name": "string", "sku": { "gpuModelId": "string" }, "count": 0, "readyCount": 0, "status": "creating", "createdAt": "string"}List a cluster's node pools GET
Returns a cluster's node pools as a cursor-paginated page, each with its SKU, the node count it converges to, how many nodes are Ready, and its status. A legacy API key needs clusters:read.
Get a node pool GET
Returns one node pool of the cluster: its name, its SKU (a GPU model or a whole-host CPU SKU), the node count it converges to, its Ready count and status. A legacy API key needs clusters:read.