edit-icon download-icon

Create an application by using an orchestration template

Last Updated: Feb 12, 2018

You can create an application by using an orchestration template in the Container Service console.

Swarm mode clusters support Compose V1/V2 and Compose V3 orchestration templates.

Note: In the orchestration template list, orchestration templates of Compose V3 is marked with composev3.

Procedure

  1. Log on to the Container Service console.

  2. Click Applications in the left-side navigation pane.

  3. Click Create Application in the upper-right corner.

  4. Complete the basic information for the application you are about to create:

    1

    • 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 policies.
    • 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.
  5. Click Create with Orchestration Template.

  6. Configure the orchestration template.

    • You can write the orchestration template by yourself.

      Swarm mode clusters support Compose V1/V2 and Compose V3 orchestration templates.

    • You can also click Use Existing Orchestration Template.

      1. The Select an Orchestration Template dialog box appears. Click Select next to the template

        Note: Orchestration templates of Compose V3 is marked with composev3.

      2. Edit the orchestration template as per your needs by:

        • Making modifications in the template directly.
        • Clicking Edit to modify the service.
        • Clicking Delete to delete the service.
        • Clicking Add Service to add another service to this orchestration template.
  7. Click Create and Deploy after completing the settings.

Thank you! We've received your feedback.