Updating a cluster allows you to change its label, hostname, and pool size. Adjusting min_pool_count and desired_pool_count scales the cluster up or down by provisioning or removing instances automatically.
The desired_pool_count must be equal to or greater than min_pool_count.
This guide explains how to update a cluster using the Vultr API.
Send a GET request to the List Clusters endpoint to retrieve all clusters.
Note the id of the cluster you want to update.
Send a PUT request to the Update Cluster endpoint to update the cluster properties. Replace {cluster-id} with the cluster id. Include only the fields you want to change.
A successful update returns an HTTP 202 Accepted response.
Send a GET request to the Get Cluster endpoint to retrieve the updated cluster details.
Verify that the cluster details reflect the new values.
0 Comments
Be the first to comment and share your perspective with the community.