Manage orchestration templates

Updated at:

Orchestration templates define a set of resources that you can use to quickly create applications. This topic describes how to create and edit orchestration templates.

Create an orchestration template

Method 1: Create a template from scratch

  1. Log on to the Container Service Management Console.

  2. In the left navigation pane, choose Marketplace > Orchestration Templates.

  3. On the Templates page, click Create in the upper-right corner.

  4. In the Create dialog box, configure the following parameters and click Save.

    • Name: Enter a name for the template.

    • Description: (Optional) Enter a description for the template.

    • Template: Enter the content of the orchestration template in Kubernetes YAML syntax.

      Note
      • You can include multiple resource objects separated by ---.

      • In the YAML, you can define parameters by using the ${params} format, for example, app: ${nginx}. The system automatically recognizes these as parameters when you deploy the application.

    After you create the template, you are redirected to the Templates page. You can click Details under the template name to view the template.

Method 2: Create from a built-in template

  1. On the Cluster List page, click the name of the destination cluster or click Details in the Actions column.

  2. In the left navigation pane of the cluster management page, choose Workload > Deployments.

  3. On the Deployments page, click Create from YAML in the upper-right corner.

  4. Select a built-in template and then click Save Template.

  5. In the Save Template dialog box, configure the template information, including Name, Description, and Template. Then, click Save.

    Note

    You can modify the built-in template before you save it.

    After you create the template, you are redirected to the Templates page. You can click Details under the template name to view the template.

Edit an orchestration template

  1. On the Templates page, find the template that you want to edit and click Details.

  2. On the template details page, edit the Cluster, Namespace, Version Description, and template content.

    After you finish editing, you can update, save as, download, or delete the orchestration template.

    • Click Save to update the orchestration template.

    • Click Save As in the upper-right corner, enter a new template name, and then click OK.

    • Click Download in the upper-right corner to download the template as a .yml file.

    • Click Delete in the upper-right corner. In the Tips dialog box that appears, click OK.