Skip to content

Node Pools

Node pools are groups of worker nodes within a Gardener-managed Kubernetes cluster. Each pool uses a single machine type and can scale independently within its configured min/max bounds.

Gardener clusters only

Node pools are a Gardener concept. Generic clusters (registered via kubeconfig) do not expose node pool management through this API — manage their nodes directly through the cluster's own tooling.

Node pool fields

Node pools are embedded in the cluster object at node_pools. Each pool has:

Field Description
name Pool identifier within the cluster
machine.type VM flavor for worker nodes (e.g. m1.large)
minimum Minimum node count (cluster autoscaler lower bound)
maximum Maximum node count (cluster autoscaler upper bound)

Viewing node pools

Node pool data is returned as part of the cluster show response:

GET /k8s/clusters/{id}?project_id=<uuid>
Authorization: Bearer <token>
{
  "id": "...",
  "kind": "gardener",
  "name": "prod-cluster",
  "node_pools": [
    {
      "name": "workers",
      "machine": { "type": "m1.large" },
      "minimum": 2,
      "maximum": 10
    }
  ]
}

Modifying node pools

Update node pool configuration via the cluster update endpoint:

PATCH /k8s/clusters/{id}?project_id=<uuid>
Authorization: Bearer <token>
Content-Type: application/json

{
  "node_pools": [
    {
      "name": "workers",
      "machine": { "type": "m1.large" },
      "minimum": 3,
      "maximum": 15
    }
  ]
}

Gardener applies the change asynchronously. Watch lastOperation on the cluster to track progress.

Machine types

Available machine types are listed in the cluster's cloud profile:

GET /k8s/cloudprofiles/{id}
Authorization: Bearer <token>

The response includes a machineTypes array with each type's vCPU count, memory, storage, and GPU information.

Autoscaling

Gardener clusters use the Kubernetes cluster autoscaler. When all nodes in a pool are fully utilized and pods are pending, the autoscaler adds nodes up to maximum. When utilization drops, it removes nodes down to minimum. Set minimum equal to maximum to pin the pool at a fixed size and disable autoscaling for that pool.

  • Clusters — create, update, and delete Kubernetes clusters