News:

SMF - Just Installed!

Main Menu

How to Update a Vultr Kubernetes Engine Cluster

Started by Suhitha, Sep 10, 2025, 12:35 AM

Previous topic - Next topic

Suhitha

Question: How to Update a Vultr Kubernetes Engine Cluster


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.

Vultr Customer Portal

1.Navigate to Products and click Kubernetes.

2.Click your target VKE cluster to open its management page.

3.In the Overview section, find the cluster's Label.

4.Click the edit icon and update the Label with the appropriate name.


Vultr API

1.Send a GET request to the List all Kubernetes Clusters endpoint and note the target VKE cluster's ID.

[color=blue]console[/color]


$ curl "https://api.vultr.com/v2/kubernetes/clusters" \
    -X GET \
    -H "Authorization: Bearer ${VULTR_API_KEY}"

2.Send a PUT request to the Update Kubernetes Cluster endpoint to update the label of the target VKE cluster.

[color=blue]console[/color]


$ 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}"
    }'


Vultr CLI

1.List the available VKE clusters and note the target VKE cluster's ID.

[color=blue]console[/color]


$ vultr-cli kubernetes list --summarize

2.Update the target VKE cluster.

[color=blue]console[/color]


$ vultr-cli kubernetes update <cluster-id> --label "<updated-cluster-name>"


Terraform

1.Open your Terraform configuration for the existing VKE cluster.

2.Change the label and apply.

[color=blue]terraform[/color]


resource "vultr_kubernetes" "vke" {
    # ...existing fields (region, version, node_pools)
    label = "updated-cluster-name"
}
3.Apply the configuration and observe the following output:

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.