You can deploy applications using images from any third-party image repository, such as Docker Hub or Docker Registry.
Before you start
1. Ensure network connectivity between your SAE application and the image repository
If the image repository is within the same VPC as your SAE application, no additional network configuration is required.
If the image repository is not within the same VPC as your SAE application, you need to establish cross-VPC network connectivity or enable a public NAT Gateway for the VPC where your application is located. If the image repository has access restrictions, add the VPC subnet where your SAE application is located, or the Elastic IP Address bound to the NAT Gateway, to the whitelist of the image repository.
2. Configure authorization information for accessing the image repository if username and password are required
Create a Secret to store the username and password of the image repository: On the Namespace page, select the target region, click the target namespace, select Secret in the left-side navigation pane, and click Create.
For Type, select Private Image Repository Logon Secret.
Enter the IP address or domain name of the image repository.
Enter the Name and Value required to log on to the image repository.
Procedure
Log on to the SAE console, choose in the left-side navigation pane, select a deployment region at the top, and then click Create Application.
If is not in the navigation bar, choose .
Select an application version.
ImportantLightweight Edition and Professional Edition are currently in the invitation-only testing phase. For users who are not participating in invitation-only testing, the created application is Standard Edition, and you do not need to select an application version.
Lightweight Edition: Provides the minimum set of functions required for application operation, does not support Application Monitoring and Microservice Governance functions.
Standard Edition: Comes with Basic Application Monitoring functions, Advanced Application Monitoring and Microservice Governance functions require additional activation and purchase.
Professional Edition: Comes with Advanced Application Monitoring and Microservice Governance functions, no additional activation or purchase required.
On the Create Application page, customize the Application Name and configure the following parameters.
Select the Namespace to which the application belongs. Namespace is equivalent to K8s Namespace and can be used for resource isolation in different environments. After an application is created, you cannot change its namespace.
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 created in advance.
Set Application Deployment Method to Select Image To Deploy, and click Set Image on the right. On the Custom Image tab, configure the following information.
Based on your actual network configuration, select Public Network or Private Network to access the image repository.
If username and password are required to access the image repository, select the Secret That Stores The Username And Password Of The Image Repository that you created earlier.
Enter the complete Image Address in the format
<Public or private address of the image repository>:<Image Tag>, for example:nginx:1.23.1.
In the Capacity Settings section, configure Single Instance Type, and Instances.
(Optional) Click Next: Advanced Settings to configure the required features.
Click Create Application.
Creating an application takes about 1-2 minutes. You can determine whether the application is deployed successfully by viewing the change records. If the deployment fails, no application instance will be generated. Troubleshoot faults based on the error information in Change History.
You can view the created applications in . If you need to change the application configuration after deployment, click the target application to enter its details page, and then click Deploy Application. Note that the application will automatically restart to make the new configuration take effect. Perform operations during off-peak hours to minimize impacts on your business.
You can log on to application instances through Webshell to interact with application instances through console commands.
After creating an application, you can manually adjust the number of instances and instance specifications, or automatically adjust the number of instances by configuring Auto Scaling policies. You can also reduce costs by enabling idle mode.
