Alibaba Cloud provides the virtual-kubelet-autoscaler add-on for Kubernetes. If pods fail to be scheduled to existing Elastic Compute Service (ECS) worker nodes due to insufficient resources, the virtual-kubelet-autoscaler add-on reschedules the pods to virtual nodes provided by Elastic Container Instance (ECI).
Install the virtual-kubelet-autoscaler add-on from the application marketplace
- Log on to the Container Service console.
- In the left-side navigation pane, choose Cluster > Cluster. On the Clusters page that appears, find the cluster in which you want to install the virtual-kubelet-autoscaler add-on and take note of the name of the cluster.
- In the left-side navigation pane, choose Marketplace > App Catalog. On the App Catalog page that appears, search for ack-virtual-kubelet-autoscaler and click the card of the add-on that is found.
- In the Deploy pane on the right, select the cluster in which you want to install the virtual-kubelet-autoscaler add-on and click Create.
Verify that the add-on is installed
After the add-on is installed, the managed Kubernetes cluster can schedule pods to the virtual node provided by ECI when resources on existing worker nodes are insufficient. For more information, see Schedule pods to virtual nodes through the virtual-kubelet-autoscaler add-on.