How To Modify Cluster Properties Using API Calls.

Problem

At times there will be requirements to edit clusters properties which are supported [listed below] via API calls:

customAmi, numSpotWorkers, numMaxSpotWorkers, numWorkers, numMinWorkers, numMaxWorkers, spotPrice, spotWorkerFlavor, tags, etcdBackup, enableProfileAgent, enableCatapultMonitoring.

Environment

  • Platform9 Managed Kubernetes - v5.5 and Higher.

Procedure

Syntax: The syntax for the API call to update the cluster property is shown below:

Syntax
Copy

Example: Here the API call will modify the numMinWorkers value to 5 for the cluster UUID 664afad3-ff7c-4184-bbaa-452622fe1f3b in tenant/project UUID d6af700ab0c848dbae1108309a7871ee is shown below:

Example
Copy

Additional Information

It is very important to note that the type of value passed for each cluster property is crucial, the numSpotWorkers, numMaxSpotWorkers, numWorkers, numMinWorkers, numMaxWorkers are expected to have integer value [without double quotes" "], for other properties, the values has to be mentioned as strings [within double quotes " "].

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard