This topic describes how to create a scaling configuration for a scaling group that contains elastic container instances. Auto Scaling uses the scaling configuration as a template to automatically create elastic container instances in a scaling group after Auto Scaling triggers scale-out activities based on your configurations, such as scheduled tasks.
- Log on to the Auto Scaling console.
- In the left-side navigation pane, click Scaling Groups.
- In the top navigation bar, select a region.
- Find a scaling group and go to the details page of the scaling group. You can use
one of the following methods to go to the details page:
- Click the ID of the scaling group in the Scaling Group Name/ID column.
- Click Details in the Actions column of the scaling group.
- In the upper part of the page, click the Instance Configuration Sources tab.
- Click the Scaling Configurations tab.
- Click Create Scaling Configuration.
- In the Basic Configurations step, configure the following parameters and click Next: Other Settings.
Parameter Description References Billing Method
- Pay-As-You-Go: Auto Scaling allocates and releases resources on demand. You are charged only for the resources that you use. You do not need to purchase resources in advance.
- Preemptible Instance: The market price of a preemptible instance fluctuates based on the supply and demand of the instance type. Compared with pay-as-you-go instances, preemptible instances incur lower costs but may be automatically reclaimed. You can use preemptible instances to reduce costs in specific business scenarios.
Configuration Information This parameter specifies the region, virtual private cloud (VPC), and vSwitch based on which you want to create the elastic container instance. The configuration information is automatically populated. The elastic container instance and the scaling group to which the instance belongs must be in the same region, VPC, and vSwitch. None Security Group A security group is a virtual firewall that manages access to elastic container instances. Configure a security group Container Group Configuration A container group is a set of containers that can be scheduled to the same host. The lifecycle of a container group is determined based on all containers in the group. These containers share the network and storage resources of the container group. A container group can be used in a similar manner as a pod in Kubernetes. Container Configuration A container is a lightweight and executable standalone software package. A container is also the running entity of an image.
- Configure the following parameters and click Configuration confirmation.
Parameter Description References EIP Elastic IP addresses (EIPs) are public IP addresses that can be purchased and managed based on the requirements of your business scenario. You can enable Internet access for an elastic container instance by associating an EIP with the instance. Connect to the Internet Mirror Warehouse Access Credentials This parameter is required if your container uses private images such as non-Alibaba Cloud Container Registry images and non-Docker Hub images. This parameter allows the system to pull images from the image repository. None Label Each label is a key-value pair and can be used to identify elastic container instances. You can use labels to manage elastic container instances by group to perform searches and batch operations. Use labels to manage elastic container instances Resource Group You can add Elastic Container Instance resources that are used for different purposes to specific resource groups. Then, you can grant the administrator permissions to RAM users, to allow the users to perform fine-grained control on the resources in resource groups. Use resource groups to manage the permissions of a RAM user Configuration Name The name specifies the scaling configuration. If you do not set this parameter, the scaling configuration ID is used. None
- Click Create Order.
- In the dialog box that is displayed, click Enable.