How to Upgrade the Cluster Version for Vultr Kubernetes Engine Cluster

Updated on September 23, 2024

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.

Warning
Upgrading your VKE cluster will result in new worker nodes being provisioned, causing node IPs to change. Ensure that any dependencies relying on static node IPs are updated accordingly to prevent disruptions.

Follow this guide to upgrade your Vultr Kubernetes Engine cluster version on your Vultr account using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and click Kubernetes.
  2. Click your target VKE cluster to open its management page.
  3. Click Manage Upgrades.
  4. If any upgrades are available for the VKE cluster, they will be displayed on the right side with a Start Upgrade button.
  5. Click Start Upgrade. The upgrade process may take a few minutes.
  1. Send a GET request to the List all Kubernetes Clusters endpoint and note the target VKE cluster's ID.

    console
    $ curl "https://api.vultr.com/v2/kubernetes/clusters" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a GET request to the Get Kubernetes Available Upgrades endpoint to list available upgrades for your VKE cluster.

    console
    $ curl "https://api.vultr.com/v2/kubernetes/clusters/{cluster-id}/available-upgrades" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  3. Send a POST request to the Start Kubernetes Cluster Upgrade endpoint to start the VKE cluster upgrade.

    console
    $ curl "https://api.vultr.com/v2/kubernetes/clusters/{cluster-id}/upgrades" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        --data '{
            "upgrade_version" : "{target-kubernetes-version}"
        }'
    
  1. List the available VKE clusters in your Vultr account and note the target VKE cluster's ID.

    console
    $ vultr-cli kubernetes list --summarize
    
  2. List all the available upgrades for the target VKE cluster.

    console
    $ vultr-cli kubernetes upgrades list <cluster-id>
    
  3. Start the upgrade process for the target VKE cluster.

    console
    $ vultr-cli kubernetes upgrades start <cluster-id> --version "<target-kubernetes-version>"
    

Comments

No comments yet.