curl --request POST \
--url https://api.fireworks.ai/v1/accounts/{account_id}/nodePools \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"nodePool": {
"displayName": "<string>",
"minNodeCount": 123,
"maxNodeCount": 123,
"overprovisionNodeCount": 123,
"eksNodePool": {
"instanceType": "<string>",
"nodeRole": "<string>",
"spot": true,
"nodeGroupName": "<string>",
"subnetIds": [
"<string>"
],
"zone": "<string>",
"placementGroup": "<string>",
"launchTemplate": "<string>"
},
"fakeNodePool": {
"machineType": "<string>",
"numNodes": 123,
"serviceAccount": "<string>"
},
"annotations": {}
},
"nodePoolId": "<string>"
}
'{
"name": "<string>",
"displayName": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"minNodeCount": 123,
"maxNodeCount": 123,
"overprovisionNodeCount": 123,
"eksNodePool": {
"instanceType": "<string>",
"nodeRole": "<string>",
"spot": true,
"nodeGroupName": "<string>",
"subnetIds": [
"<string>"
],
"zone": "<string>",
"placementGroup": "<string>",
"launchTemplate": "<string>"
},
"fakeNodePool": {
"machineType": "<string>",
"numNodes": 123,
"serviceAccount": "<string>"
},
"annotations": {},
"state": "STATE_UNSPECIFIED",
"status": {
"code": "OK",
"message": "<string>"
},
"nodePoolStats": {
"nodeCount": 123,
"ranksPerNode": 123,
"environmentCount": 123,
"environmentRanks": 123,
"batchJobCount": {},
"batchJobRanks": {}
},
"updateTime": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://api.fireworks.ai/v1/accounts/{account_id}/nodePools \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"nodePool": {
"displayName": "<string>",
"minNodeCount": 123,
"maxNodeCount": 123,
"overprovisionNodeCount": 123,
"eksNodePool": {
"instanceType": "<string>",
"nodeRole": "<string>",
"spot": true,
"nodeGroupName": "<string>",
"subnetIds": [
"<string>"
],
"zone": "<string>",
"placementGroup": "<string>",
"launchTemplate": "<string>"
},
"fakeNodePool": {
"machineType": "<string>",
"numNodes": 123,
"serviceAccount": "<string>"
},
"annotations": {}
},
"nodePoolId": "<string>"
}
'{
"name": "<string>",
"displayName": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"minNodeCount": 123,
"maxNodeCount": 123,
"overprovisionNodeCount": 123,
"eksNodePool": {
"instanceType": "<string>",
"nodeRole": "<string>",
"spot": true,
"nodeGroupName": "<string>",
"subnetIds": [
"<string>"
],
"zone": "<string>",
"placementGroup": "<string>",
"launchTemplate": "<string>"
},
"fakeNodePool": {
"machineType": "<string>",
"numNodes": 123,
"serviceAccount": "<string>"
},
"annotations": {},
"state": "STATE_UNSPECIFIED",
"status": {
"code": "OK",
"message": "<string>"
},
"nodePoolStats": {
"nodeCount": 123,
"ranksPerNode": 123,
"environmentCount": 123,
"environmentRanks": 123,
"batchJobCount": {},
"batchJobRanks": {}
},
"updateTime": "2023-11-07T05:31:56Z"
}Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>
The Account Id
The properties of the NodePool being created.
Show child attributes
Human-readable display name of the node pool. e.g. "My Node Pool" Must be fewer than 64 characters long.
https://cloud.google.com/kubernetes-engine/quotas Minimum number of nodes in this node pool. Must be a non-negative integer less than or equal to max_node_count. If not specified, the default is 0.
https://cloud.google.com/kubernetes-engine/quotas Maximum number of nodes in this node pool. Must be a positive integer greater than or equal to min_node_count. If not specified, the default is 1.
The number of nodes to overprovision by the autoscaler. Must be a non-negative integer and less than or equal to min_node_count and max_node_count-min_node_count. If not specified, the default is 0.
Show child attributes
The type of instance used in this node pool. See https://aws.amazon.com/ec2/instance-types/ for a list of valid instance types.
If not specified, the parent cluster's system_node_group_role will be used.
The name of the node group. If not specified, the default is the node pool ID.
A list of subnet IDs for nodes in this node pool. If not specified, the parent cluster's default subnet IDs that matches the zone will be used. Note that all the subnets will need to be in the same zone.
Zone for the node pool. If not specified, a random zone in the cluster's region will be selected.
Cluster placement group to colocate hosts in this pool.
Launch template to create for this node group.
Arbitrary, user-specified metadata. Keys and values must adhere to Kubernetes constraints: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set Additionally, the "fireworks.ai/" prefix is reserved.
Show child attributes
A successful response.
Human-readable display name of the node pool. e.g. "My Node Pool" Must be fewer than 64 characters long.
The creation time of the node pool.
https://cloud.google.com/kubernetes-engine/quotas Minimum number of nodes in this node pool. Must be a non-negative integer less than or equal to max_node_count. If not specified, the default is 0.
https://cloud.google.com/kubernetes-engine/quotas Maximum number of nodes in this node pool. Must be a positive integer greater than or equal to min_node_count. If not specified, the default is 1.
The number of nodes to overprovision by the autoscaler. Must be a non-negative integer and less than or equal to min_node_count and max_node_count-min_node_count. If not specified, the default is 0.
Show child attributes
The type of instance used in this node pool. See https://aws.amazon.com/ec2/instance-types/ for a list of valid instance types.
If not specified, the parent cluster's system_node_group_role will be used.
The name of the node group. If not specified, the default is the node pool ID.
A list of subnet IDs for nodes in this node pool. If not specified, the parent cluster's default subnet IDs that matches the zone will be used. Note that all the subnets will need to be in the same zone.
Zone for the node pool. If not specified, a random zone in the cluster's region will be selected.
Cluster placement group to colocate hosts in this pool.
Launch template to create for this node group.
Arbitrary, user-specified metadata. Keys and values must adhere to Kubernetes constraints: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set Additionally, the "fireworks.ai/" prefix is reserved.
Show child attributes
The current state of the node pool.
STATE_UNSPECIFIED, CREATING, READY, DELETING, FAILED Contains detailed message when the last node pool operation fails, e.g. when node pool is in FAILED state or when last node pool update fails.
Show child attributes
The status code.
OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, DATA_LOSS A developer-facing error message in English.
Live statistics of the node pool.
Show child attributes
The number of nodes currently available in this pool.
The number of ranks available per node. This is determined by the machine type of the nodes in this node pool.
The number of environments connected to this node pool.
The number of ranks in this node pool that are currently allocated to environment connections.
The update time for the node pool.
Was this page helpful?