Updating a Vultr Kubernetes Engine (VKE) cluster enables you to change its label without affecting workloads, configurations, or underlying resources. Labels help you effectively manage multiple clusters, ensuring clear identification and organization within your infrastructure.
Follow this guide to update a Vultr Kubernetes Engine cluster in your Vultr account using the Vultr Customer Portal, 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 PUT
request to the Update Kubernetes Cluster endpoint to update the label of the target VKE cluster.
$ curl "https://api.vultr.com/v2/kubernetes/clusters/{cluster-id}" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"label": "{updated-cluster-name}"
}'
List the available VKE clusters and note the target VKE cluster's ID.
$ vultr-cli kubernetes list --summarize
Update the target VKE cluster.
$ vultr-cli kubernetes update <cluster-id> --label "<updated-cluster-name>"
No comments yet.