Skip to main content

clusters_node_pools

Creates, updates, deletes, gets or lists a clusters_node_pools resource.

Overview

Nameclusters_node_pools
TypeResource
Iddigitalocean.kubernetes.clusters_node_pools

Fields

NameDatatypeDescription
column_anon``

Methods

NameAccessible byRequired ParamsDescription
kubernetes_get_node_poolSELECTcluster_id, node_pool_idTo show information about a specific node pool in a Kubernetes cluster, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID.
kubernetes_list_node_poolsSELECTcluster_idTo list all of the node pools in a Kubernetes clusters, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools.
kubernetes_add_node_poolINSERTcluster_idTo add an additional node pool to a Kubernetes clusters, send a POST request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools with the following attributes.
kubernetes_delete_node_poolDELETEcluster_id, node_pool_idTo delete a node pool, send a DELETE request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID. A 204 status code with no body will be returned in response to a successful request. Nodes in the pool will subsequently be drained and deleted.
kubernetes_recycle_node_poolEXECcluster_id, node_pool_idThe endpoint has been deprecated. Please use the DELETE /v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID/nodes/$NODE_ID method instead.
kubernetes_update_node_poolEXECcluster_id, node_pool_idTo update the name of a node pool, edit the tags applied to it, or adjust its number of nodes, send a PUT request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID with the following attributes.

SELECT examples

To list all of the node pools in a Kubernetes clusters, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools.

SELECT
column_anon
FROM digitalocean.kubernetes.clusters_node_pools
WHERE cluster_id = '{{ cluster_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new clusters_node_pools resource.

/*+ create */
INSERT INTO digitalocean.kubernetes.clusters_node_pools (
data__size,
data__name,
data__count,
data__tags,
data__labels,
data__taints,
data__auto_scale,
data__min_nodes,
data__max_nodes,
cluster_id
)
SELECT
'{{ size }}',
'{{ name }}',
'{{ count }}',
'{{ tags }}',
'{{ labels }}',
'{{ taints }}',
'{{ auto_scale }}',
'{{ min_nodes }}',
'{{ max_nodes }}',
'{{ cluster_id }}'
;

DELETE example

Deletes the specified clusters_node_pools resource.

/*+ delete */
DELETE FROM digitalocean.kubernetes.clusters_node_pools
WHERE cluster_id = '{{ cluster_id }}'
AND node_pool_id = '{{ node_pool_id }}';