If your Serverless App Engine (SAE) application and Alibaba Cloud Container Registry (ACR) instance are in the same account, you must ensure that the application's network can access the ACR instance. You can then select an image from the ACR instance to deploy the application.
Prerequisites
Ensure the SAE application's network can access the ACR instance
The SAE application and the ACR instance must be in the same region.
For an ACR Enterprise Edition instance, you must also configure network access control for the virtual private cloud and add the VPC of the SAE application.
For an ACR Personal Edition instance, no additional configuration is required.
Procedure
On the SAE Application List page, select the target region and namespace in the top navigation bar, and then click Create Application.
Select an application edition.
ImportantThe Lightweight Edition and Professional Edition are in an invite-only beta testing phase. If you are not part of the beta test, the application is created as the Standard Edition, and you do not need to select an edition.
Lightweight Edition: Provides the minimum feature set required to run an application. It does not support the Application Monitoring or Microservices Governance features.
Standard Edition: Includes the Basic Application Monitoring feature. The Advanced Application Monitoring and Microservices Governance features must be enabled and purchased separately.
Professional Edition: Includes the Advanced Application Monitoring and Microservices Governance features. They do not need to be enabled or purchased separately.
On the Create Application page, specify a custom Application Name and configure the following parameters.
Select the namespace type for the application. A namespace is equivalent to a Kubernetes namespace and can be used to isolate resources in different environments. You cannot change the namespace of an application after it is created. Plan accordingly.
System Created: Use the default namespace, vSwitch, and security group created by the system in the current region.
Existing Namespace: Select the Namespace, vSwitch, and Security Group that you previously created.
Set Application Deployment Method to Select Image Deployment, and then click Specify Image. On the Images of Current Alibaba Cloud Account tab, select your ACR image edition. Then, select the image repository and image version to deploy. If you use Container Registry Enterprise Edition, you can enable the image acceleration feature to improve application startup speed.
In the Capacity Settings section, set Resource Type, Single Instance Type, and Instances.
(Optional) Click Next: Advanced Settings to configure the required features.
Click Create Application with One Click or Create Application.
The application takes about 1 to 2 minutes to create. You can check the change records to verify that the deployment was successful. If the deployment fails, an application instance is not created. You can troubleshoot the issue using the error message in the Change Details.
You can view the created application on the page. To change the application configuration after deployment, click the target application to go to its details page. Then, in the top navigation bar, click Deploy Application or Modify Application Configurations. Note that the application automatically restarts for the new configuration to take effect. We recommend that you perform this operation during off-peak hours.
You can log on to an application instance using Webshell and interact with the application instance using console commands.
After you create an application, you can manually adjust the number of instances and the instance type, or automatically adjust the number of instances by configuring an Auto Scaling policy. You can also reduce costs by enabling idle mode.