Resize a Node Pool (Cardinality)
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.
/api/v1/kubernetes/cluster-update/{node_pool_id}Path parameters
node_pool_idPathintegerrequiredThe node pool
service_id(from List).- required
- must be a valid node pool service ID
example12346
Query parameters
project_idQueryintegerrequiredIdentifier of the project to scope the request to. Required integer project ID.
- required
- must be a valid integer project ID
example{{project_id}}apikeyQuerystringrequiredAPI key used to authenticate the request.
- required
- non-empty string
example{{api_key}}locationQuerystringrequiredRegion of the cluster.
- required
- must be a valid region name (e.g., Delhi, Chennai)
example{{location}}
Request body
application/json
Manually set the worker node count of the pool.
Target number of worker nodes.
3- required
- integer between 2 and 25
When true, also raise the pool's minimum to the new cardinality so autoscaling does not scale it back down.
false- optional
- defaults to false
Responses
200Successful response
A resize on a committed pool is rejected with 412 Precondition Failed.
200Node pool resize initiated