Skip to main content

managed_kubernetes_nodepools

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

Overview​

Namemanaged_kubernetes_nodepools
TypeResource
Idovh.public_cloud_kubernetes.managed_kubernetes_nodepools

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the nodepool
checksumstringConcurrency control hash of the target specification
created_atstring (date-time)Nodepool creation timestamp (wire: createdAt)
current_stateobjectActual nodepool state (wire: currentState)
current_tasksarrayIn-progress asynchronous operations on the nodepool (wire: currentTasks)
resource_statusstringCurrent lifecycle status of the nodepool (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectDesired nodepool specification (wire: targetSpec)
updated_atstring (date-time)Last nodepool modification timestamp (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanaged_kubernetes_id, node_pool_id, project_idGet a nodepool of a managed Kubernetes cluster (Beta version)
listselectmanaged_kubernetes_id, project_idx_pagination_cursor, x_pagination_sizeList nodepools of a managed Kubernetes cluster (Beta version)
createinsertmanaged_kubernetes_id, project_id, target_specCreate a nodepool in a managed Kubernetes cluster (Beta version)
updateupdatemanaged_kubernetes_id, node_pool_id, project_id, target_specUpdate a nodepool of a managed Kubernetes cluster (Beta version)
deletedeletemanaged_kubernetes_id, node_pool_id, project_idDelete a nodepool of a managed Kubernetes cluster (Beta version)

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
managed_kubernetes_idstring (uuid)Managed kubernetes ID (wire: managedKubernetesId)
node_pool_idstring (uuid)Node pool ID (wire: nodePoolId)
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Get a nodepool of a managed Kubernetes cluster (Beta version)

SELECT
id,
checksum,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at
FROM ovh.public_cloud_kubernetes.managed_kubernetes_nodepools
WHERE managed_kubernetes_id = '{{ managed_kubernetes_id }}' -- required
AND node_pool_id = '{{ node_pool_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Create a nodepool in a managed Kubernetes cluster (Beta version)

INSERT INTO ovh.public_cloud_kubernetes.managed_kubernetes_nodepools (
target_spec,
managed_kubernetes_id,
project_id
)
SELECT
'{{ target_spec }}' /* required */,
'{{ managed_kubernetes_id }}',
'{{ project_id }}'
RETURNING
id,
checksum,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at
;

UPDATE examples​

Update a nodepool of a managed Kubernetes cluster (Beta version)

UPDATE ovh.public_cloud_kubernetes.managed_kubernetes_nodepools
SET
checksum = '{{ checksum }}',
target_spec = '{{ target_spec }}'
WHERE
managed_kubernetes_id = '{{ managed_kubernetes_id }}' --required
AND node_pool_id = '{{ node_pool_id }}' --required
AND project_id = '{{ project_id }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
AND target_spec = '{{ target_spec }}' --required
RETURNING
id,
checksum,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at;

DELETE examples​

Delete a nodepool of a managed Kubernetes cluster (Beta version)

DELETE FROM ovh.public_cloud_kubernetes.managed_kubernetes_nodepools
WHERE managed_kubernetes_id = '{{ managed_kubernetes_id }}' --required
AND node_pool_id = '{{ node_pool_id }}' --required
AND project_id = '{{ project_id }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;