Skip to content

Resize a Node Pool (Cardinality)

PUT
/api/v1/kubernetes/cluster-update/{node_pool_id}
curl --request PUT \
--url 'https://api.e2enetworks.com/myaccount/api/v1/kubernetes/cluster-update/{node_pool_id}?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"cardinality": 3,
"update_min_nodes": false
}'

Manually sets the number of worker nodes (cardinality) in a node pool. cardinality must be between 2 and 25. Set update_min_nodes: true to also raise the pool’s minimum so autoscaling does not immediately scale it back down. The request is rejected with 412 Precondition Failed if the pool is already committed or otherwise not in a resizable state.

node_pool_id
required
integer

The node pool service_id (from List).

Example

12346
project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the request.

Example

<API_KEY>
location
required
string

Region of the cluster.

Example

<LOCATION>
Media typeapplication/json

Manually set the worker node count of the pool.

object
cardinality
required

Target number of worker nodes.

integer

Example

3
update_min_nodes

When true, also raise the pool’s minimum to the new cardinality so autoscaling does not scale it back down.

boolean

Example

false

Example

{
"cardinality": 3,
"update_min_nodes": false
}

Successful response

Media typeapplication/json

A resize on a committed pool is rejected with 412 Precondition Failed.

object
code
integer
data
object
errors
object
message
string

Example

{
"code": 200,
"message": "Node pool resize initiated"
}