a. From the REST API UI, run PUT /upgrade/rancher/{version} with the latest version number from the
previous step.
b. From the response, copy the task ID.
c. Run GET /task/{taskID} with the task ID from the previous step.
The upgrade has finished successfully when the PercentComplete indicates 100 and results indicates
the upgraded version number.
Upgrade RKE
API commands
1. Initiate the list upgrade versions request:
curl -X POST "https://<mNodeIP>/k8sdeployer/1/upgrade/rke-versions" -H
"accept: application/json" -H "Authorization: Bearer <ID>"
You can find the bearer ID used by the APIs by running a GET command and retrieving it
from the curl response.
2. Get task status using task ID from previous command and copy the latest version number from the
response:
curl -X GET "https://<mNodeIP>/k8sdeployer/1/task/<taskID>" -H "accept:
application/json" -H "Authorization: Bearer <ID>"
3. Initiate the RKE upgrade request
curl -X PUT "https://<mNodeIP>/k8sdeployer/1/upgrade/rke/<version
number>" -H "accept: application/json" -H "Authorization: Bearer"
4. Get task status using task ID from upgrade command response:
curl -X GET "https://<mNodeIP>/k8sdeployer/1/task/<taskID>" -H "accept:
application/json" -H "Authorization: Bearer <ID>"
REST API UI steps
1. Open the management node REST API UI on the management node:
https://<managementNodeIP>/k8sdeployer/api/
2. Select Authorize and complete the following:
a. Enter the cluster user name and password.