How to Upgrade PMK Cluster in Batches
Problem
How to Upgrade PMK Cluster in Batches?
Environment
Platform9 Managed Kubernetes - v5.4 and Higher
Qbert v4 API
Procedure
Fetch Keystone authentication token in order to access the PMK REST API by following Keystone Identity API.
Check if the PMK Cluster is available for an upgrade.
curl --header "X-Auth-Token: $TOKEN" https://<DU_FQDN>/qbert/v4/<PROJECT_ID>/clusters/<CLUSTER_UUID>curl --header "X-Auth-Token: $TOKEN" https://sanchit.platform9.horse/qbert/v4/86f43d7fc7ce4287a6be1d861a9ac8b4/clusters/41596ba7-b6e5-4008-85e4-42080f43eb90 | jq | grep -e name -e uuid -e projectId -e kubeRoleVersion -e canUpgrade -e canMinorUpgrade -e minorUpgradeRoleVersion -e canPatchUpgrade -e patchUpgradeRoleVersion
"name": "batch-upgrade-test",
"uuid": "41596ba7-b6e5-4008-85e4-42080f43eb90",
"canUpgrade": true,
"projectId": "86f43d7fc7ce4287a6be1d861a9ac8b4",
"kubeRoleVersion": "1.20.11-pmk.2064",
"canMinorUpgrade": 1,
"minorUpgradeRoleVersion": "1.21.3-pmk.72",
"canPatchUpgrade": 0,
"patchUpgradeRoleVersion": ""Cluster Node Information
Master Node
Worker Node
Performing Batch Cluster Upgrade
Important
As part of the Upgrade API with Batch Option, only Worker Nodes can/should be specified in the batchUpgradeNodes parameter.
The Master Nodes will always be upgraded first in a sequential manner followed by the worker nodes specified in the batchUpgradeNodes argument.
The above example API upgraded the master nodes within the cluster first followed by the provided single worker node in batch.
Upgrade the remaining worker nodes as part of the next batch.
Post Upgrade Status
Last updated
