Learn how to update your Vultr Kubernetes Engine (VKE) clusters label to better organize and identify your clusters without disrupting workloads or configurations.
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, CLI, or Terraform.
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>"
Open your Terraform configuration for the existing VKE cluster.
Change the label
and apply.
resource "vultr_kubernetes" "vke" {
# ...existing fields (region, version, node_pools)
label = "updated-cluster-name"
}
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
No comments yet.