You can create an application by using an image in the Container Service console.
Log on to the Container Service console.
Click Applications in the left-side navigation pane.
Click Create Application in the upper-right corner.
Complete the basic information for the application you are about to create:
- Name: Enter the name of the application. It can be 1–64 characters long and contain numbers, English letters, and hyphens (-), but cannot start with a hyphen (-).
- Version: Enter the version of the application. By default, 1.0 is entered.
- Cluster: Select the cluster on which the application will be deployed.
- Update: The update method of the application. Select Standard Release or Blue-Green Release. For more information, see Overview of release polices.
- Description: Enter the information of the application. This field is optional. The entered description cannot exceed 1024 characters and will be displayed on the Application List page.
- Pull Docker Image: With this check box selected, Container Service pulls the latest Docker image from the repository to deploy the application, even when the image tag does not change.
To improve efficiency, Container Service caches the image. When deploying an application, Container Service uses the cached image instead of pulling the image from the repository if the image tag is the same as that of the local cache. Therefore, if you modify your codes and image but do not modify the image tag for the convenience of upper business, Container Service will use the old image cached locally to deploy the application. With this check box selected, Container Service ignores the cached image and re-pulls the image from the repository when deploying the application to make sure the latest image and codes are always used.
Click Create with Image.
Complete the following configurations as per your needs:
Set the Image Name.
You can directly enter the image name of the target hub in the format of
Set the Mode.
Select Replicated or Global. With Replicated selected, provide the expected number of tasks and this number will be always maintained. With Global selected, the system starts a task on each node.
Set the startup command (Command and Entry Point) of the container.
If configured, the image configurations will be overwritten.
Set the rules for the Update and Restart fields.
Set the Constraint and Port Mapping.
Set the container Data Volume.
You can set the permission, type, and configurations of the data volume.
Set the Resource Limit and Resource Reserve.
Set the Networks.
For more information about network, see Network overview.
Set the Environment variables.
Set the Service Label and Container Label.
For more information about the labels supported by Container Service, see Label overview.
Set the Secrets.
For more information, see Secret overview.
Set the container Auto Scaling rules.
For more information, see Container auto scaling.
Note: To use the auto scaling function, upgrade the cluster Agent to the latest version first. For how to upgrade the Agent, see Upgrade Agent.
Click Create and Deploy after completing the settings.