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.
Cluster is currently on version 1.20.11-pmk.2064 and there is a minor upgrade available to version 1.21.3-pmk.72.
Cluster Node Information
Master Node
Worker Node
Performing Batch Cluster Upgrade
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.
If Patch type cluster upgrade is available and that is desired, the same needs to be specified in the API call as upgrade/\?type\="patch"
--header "content-type: application/json" should be specified as shown above, otherwise the API call will upgrade all nodes in a sequential manner.
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
