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
Situation
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
[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
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com