IBM Cloud Docs
Rebalancing or resizing autoscaled worker pools

Rebalancing or resizing autoscaled worker pools

Before you can rebalance or resize your worker pool, you must remove the worker pool from the autoscaler configmap to disable autoscaling.

  1. Edit iks-ca-configmap and disable the worker pool that you want to resize or rebalance by removing it from the workerPoolsConfig.json section.

    oc edit cm -n kube-system iks-ca-configmap
    

    Example output

    apiVersion: v1
    data:
      workerPoolsConfig.json: |
        [
         {"name": "","minSize": 1,"maxSize": 2,"enabled":false}
        ]
    kind: ConfigMap
    
  2. Save the iks-ca-configmap.

  3. Resize or rebalance your worker pool.

  4. Optional Update your VPC worker nodes.

  5. Add the worker pool to the iks-ca-configmap.

    oc edit cm -n kube-system iks-ca-configmap
    

    Example

    apiVersion: v1
    data:
      workerPoolsConfig.json: |
        [
         {"name": "<worker_pool>","minSize": 1,"maxSize": 2,"enabled":false}
        ]
    kind: ConfigMap