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

  1. Fetch Keystone authentication token in order to access the PMK REST API by following Keystone Identity API.
  2. Check if the PMK Cluster is available for an upgrade.
GET Cluster API
Copy
Example GET Cluster API
Copy

Cluster is currently on version 1.20.11-pmk.2064 and there is a minor upgrade available to version 1.21.3-pmk.72.

  1. Cluster Node Information
  • Master Node
GET Master Node API
Copy
Example GET Master Node API
Copy
  • Worker Node
GET Worker Node API
Copy
Example GET Worker Node API
Copy
  1. 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.

Upgrade API with Batch Option
Copy
Example Upgrade API with Batch Option for Minor Type
Copy

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.
Example Master Node Status
Copy
Example Worker Node Status
Copy
  • Upgrade the remaining worker nodes as part of the next batch.
Example Upgrade API with Batch Option for Minor Type on Remaining Worker Nodes
Copy
  • Post Upgrade Status
Example Cluster Status Post Upgrade
Copy
Example Node Status Post Upgrade
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard