Orchestration templates define and describe a set of resources. You can use orchestration templates to create applications. This topic describes how to create and modify an orchestration template.

Create an orchestration template

Method 1: Directly create an orchestration template

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, choose Marketplace > Orchestration Templates.
  3. On the Templates page, click Create in the upper-right corner.
  4. In the Create dialog box, configure the template and click Save.
    • Name: Specify a name for the template.
    • Description: Specify a description for the template. This parameter is optional.
    • Template: Configure the template that conforms to the YAML syntax.
      Note
      • The template can contain multiple resource objects that are separated with ---.
      • You can add values in the ${params} format, such as app: ${nginx}, to the YAML file. The value is automatically recognized as a parameter when you deploy an application by using the template.
    After the template is created, you are redirected to the Templates page. You can click Details below the template name to view template details.

Method 2: Create an orchestration template from the template provided by ACK

  1. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  2. In the left-side navigation pane of the details page, choose Workloads > Deployments.
  3. On the Deployments page, click Create from YAML in the upper-right corner.
  4. Select a template and click Save Template.
  5. In the Save Template dialog box, specify the name, description, and content of the template. Then, click Save.
    Note You can modify the template based on your requirements.
    After the template is created, you are redirected to the Templates page. You can click Details below the template name to view template details.

Modify an orchestration template

  1. On the Templates page, select the template that you want to manage and click Details.
  2. On the template details page, modify the Cluster, Namespace, and Version Description parameters and the template content.
    After you modify the template, you can update, save, download, or delete the template based on your requirements.
    • Click Save to update the template.
    • Click Save As in the upper-right corner. In the dialog box that appears, enter the name of the new template and click OK to save the template.
    • Click Download in the upper-right corner. The template is saved to a .yml file.
    • Click Delete in the upper-right corner. In the Note message, click OK to delete the template.