A feature that allows you to restart your Vultr instance while preserving its data and configuration.
Recycling a Node Pool instance in a Vultr Kubernetes Engine (VKE) cluster replaces a specific node with a fresh instance of the same configuration, which resolves node-level issues, applies updates, or recovers from resource constraints without disrupting the entire Node Pool. Recycle performs a surge replacement. VKE provisions the replacement node and waits for it to join the cluster before draining and removing the target node, so the Node Pool temporarily runs one node above its configured size.
Follow this guide to recycle a Node in a Vultr Kubernetes Engine cluster on your Vultr account using the Vultr Console, API, or CLI.
Send a GET request to the List all Kubernetes Clusters endpoint and note the target VKE cluster's ID.
$ curl "https://api.vultr.com/v2/kubernetes/clusters" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET request to the List NodePools endpoint to view all Node Pools and note the target Node Pool's ID.
$ curl "https://api.vultr.com/v2/kubernetes/clusters/{cluster-id}/node-pools" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET request to the Get NodePool endpoint and note the target Node's ID.
$ curl "https://api.vultr.com/v2/kubernetes/clusters/{cluster-id}/node-pools/{nodepool-id}" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST request to the Recycle a NodePool Instance endpoint to replace the target Node with a new one.
$ curl "https://api.vultr.com/v2/kubernetes/clusters/{cluster-id}/node-pools/{nodepool-id}/nodes/{node-id}/recycle" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List the available VKE clusters in your Vultr account and note the target VKE cluster's ID.
$ vultr-cli kubernetes list --summarize
List all the available Node Pools in the VKE cluster and note the target Node Pool's ID.
$ vultr-cli kubernetes node-pool list {cluster-id} --summarize
List the attached instances of the target Node Pool and note the target Node's ID.
$ vultr-cli kubernetes node-pool get {cluster-id} {nodepool-id}
Recycle the target Node by replacing it with a new one.
$ vultr-cli kubernetes node-pool node recycle {cluster-id} {nodepool-id} {node-id}