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).

Prerequisites

Install the virtual-kubelet-autoscaler add-on from the application marketplace

  1. Log on to the Container Service console.
  2. 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.
  3. 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.
  4. 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

In the left-side navigation pane, choose Applications > Deployments. On the Deployments page that appears, select the kube-system namespace from the drop-down list. Verify that the virtual-kubelet-autoscaler application appears in the list.

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.