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.
-
Edit
iks-ca-configmapand disable the worker pool that you want to resize or rebalance by removing it from theworkerPoolsConfig.jsonsection.oc edit cm -n kube-system iks-ca-configmapExample output
apiVersion: v1 data: workerPoolsConfig.json: | [ {"name": "","minSize": 1,"maxSize": 2,"enabled":false} ] kind: ConfigMap -
Save the
iks-ca-configmap. -
Optional Update your VPC worker nodes.
-
Add the worker pool to the
iks-ca-configmap.oc edit cm -n kube-system iks-ca-configmapExample
apiVersion: v1 data: workerPoolsConfig.json: | [ {"name": "<worker_pool>","minSize": 1,"maxSize": 2,"enabled":false} ] kind: ConfigMap