v1

latestSwagger 2.02026-08-04232286653.5 KB
Kubernetes Node Pools

Lists all Kubernetes node pools in the project and returns their details.

Results can be narrowed to a single cluster with the cluster_id query parameter.

get/projects/{project_id}/kubernetes/nodepools

Path parameters

project_idstring required

ID of the project that owns the node pools.

Query parameters

cluster_idstring

Filters results to node pools in this cluster.

sortstring

Field to sort results by; prefix with '-' for descending order.

Response

Example response

{
  "items": [
    {
      "cluster_id": "9c8b7d6e-5f4a-3b2c-1e0f-2a3b4c5d6e7f",
      "count": 4,
      "created_at": "2021-12-03T19:58:34Z",
      "ephemeral_storage_for_containerd": true,
      "id": "0a1b3c2d-5e6f-8b9c-4d7e-1a2b3c4d5e6f",
      "image_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
      "instance_details": [
        {
          "id": "ca39e669-47ee-456b-968d-303234fbf99f",
          "using_latest_config": true
        }
      ],
      "instance_ids": [
        "ca39e669-47ee-456b-968d-303234fbf99f"
      ],
      "name": "crusoe-node-pool",
      "node_labels": {
        "label": "my_node"
      },
      "node_taints": [
        {
          "effect": "NoSchedule",
          "key": "gpu",
          "value": "true"
        }
      ],
      "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
      "project_id": "9c8b7d6e-5f4a-3b2c-1e0f-2a3b4c5d6e7f",
      "public_ip_type": "dynamic",
      "reservation_id": "ca39e669-47ee-456b-968d-303234fbf99f",
      "state": "STATE_RUNNING",
      "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
      "type": "a100.2x",
      "updated_at": "2021-12-03T19:58:34Z"
    }
  ]
}