Elastic Container Instance-based scheduling is a scheduling policy that Alibaba Cloud provides for elastic resource scheduling. You can add annotations to specify the resources that you want to use when you deploy applications. You can specify that only Elastic Compute Service (ECS) instances or elastic container instances are used, or enable the system to request elastic container instances when ECS resources are insufficient. Elastic Container Instance-based scheduling can meet your resource requirements in different workload scenarios.
Prerequisites
- An Container Service for Kubernetes (ACK) Pro cluster is created and the Kubernetes version is 1.18 or later. For more information, see Create an ACK Pro cluster.
- The ack-virtual-node component is installed in the cluster. For more information, see Use Elastic Container Instance in ACK clusters.
Procedure
Note You can specify the type of elastic resources that you want to use in the
annotations
parameter in the template.metadata
section of the Deployment configuration. The alibabacloud.com/burst-resource
annotation can be set to one of the following values:
- If the value is left empty, only existing ECS resources in the cluster are used. This is the default value.
- eci: Elastic container instances are used when the ECS resources in the cluster are insufficient.
- eci_only: Only elastic container instances are used. The ECS resources in the cluster are not used.