SUSE Support

Here When You Need Us

How to upgrade an RKE2 downstream cluster using curl

This document (000021207) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Rancher 2.7.x, RKE2 downstream cluster

Situation

It is possible that the version of Kubernetes that you are upgrading to is not listed in Rancher. Currently, this is the case for the deprecated version as per this bug [1],

Resolution

The curl command below can help initiate the upgrade from the command line.

The format of the curl:

curl -v -u "$token-bear" \
-X PUT \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"rke2Config": {"kubernetesVersion": "v1.24.15+rke2r1"},"name": "$downstream-name"}' \
'$Rancher-URL-With-ClusterID'

Example:

curl -v -u "$token-bear" \
-X PUT \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"rke2Config": {"kubernetesVersion": "v1.24.15+rke2r1"},"name": "test-rancher"}' \
'https://pitshou.rancher.cloud/v3/clusters/c-m-74phsk89'


 

Additional Information

References:
[1] https://github.com/rancher/dashboard/issues/9530

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021207
  • Creation Date: 14-Sep-2023
  • Modified Date:28-Dec-2023
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.