Upgrading a Vultr Kubernetes Engine (VKE) cluster version involves updating both the control plane and worker nodes to a newer Kubernetes version. This ensures that your cluster benefits from the latest features, improvements, and security patches. Vultr Kubernetes Engine simplifies the upgrade process, allowing you to maintain your VKE cluster’s efficiency and compatibility with new Kubernetes releases.
Follow this guide to upgrade your VKE cluster version on your Vultr account using the Vultr Customer Portal, API, or CLI.
Navigate to Products and click Kubernetes.
Click your target VKE cluster to open its management page.
Click Manage Upgrades.
If any upgrades are available for the VKE cluster, they will be displayed on the left side with an Start Upgrade button.
Click Start Upgrade, the upgrade procedure may take a few minutes.
Send a GET
request to the List Kubernetes Clusters endpoint and note the target VKE cluster's ID.
$ curl -X GET "https://api.vultr.com/v2/kubernetes/clusters" \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json"
Send a GET
request to the Kubernetes Available Upgrades endpoint to list all the available upgrades.
$ curl "https://api.vultr.com/v2/kubernetes/clusters/<cluster-id>/available-upgrades" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}
Send a POST
request to the Start Kubernetes Cluster Upgrade endpoint to start the VKE cluster upgrade.
$ curl "https://api.vultr.com/v2/kubernetes/clusters/afba2c99-7d3e-4dc3-95a5-1c8ff9627b4f/upgrades" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"upgrade_version" : "v1.30.0+1"
}'
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 upgrades for the target VKE cluster.
$ vultr-cli kubernetes upgrades list <cluster-id>
Start the upgrade procedure for the target VKE cluster.
$ vultr-cli kubernetes upgrades start <cluster-id> --version v1.30.0+1