Replace a Kubernetes worker

Replace a worker with a new one. We move the pods off the old worker and remove it shortly after the response. To follow the replacement, get the node pool and watch its nodes, or look for the cluster's node_replaced event.

POST https://{availability_zone}.betterstackcloud.com/v1/kubernetes-clusters/{kubernetes_cluster_id}/node-pools/{id}/nodes/{node_id}/recycle
kubernetes_cluster_id string required

The ID of the Kubernetes cluster.

id string required

The ID of the Kubernetes node pool to recycle.

node_id string required

The ID of the worker to replace, from the node pool's nodes. Use the worker's id, never its server_id.

Authorization string required

Bearer $TOKEN

202 Accepted
{
  "id": "example",
  "name": "Example",
  "server_id": "123456789",
  "status": "queued",
  "version": "1.4.2",
  "last_seen_at": "2026-07-01T12:00:00.000Z"
}

Returns the worker being replaced, as replacing.

id string

The ID of the worker being replaced.

name string

The name in Kubernetes of the worker being replaced.

server_id string or null

The ID of the server of the worker being replaced.

status string

The worker's state, replacing in this response. Possible values: queued, provisioning, joining, ready, not_ready, draining, replacing, destroyed.

version string or null

The Kubernetes version the worker last reported.

last_seen_at datetime or null

When we last saw the worker ready. In ISO 8601 format, such as 2026-07-01T12:00:00Z.