You can use multiple methods to create orchestration templates through the Container Service console.

Procedure

  1. Log on to the Container Service console.
  2. In the left-side navigation pane under Container Service-Kubernetes, choose Store > Orchestration Templates. Then, in the upper-right corner, click Create.


  3. In the displayed dialog box, configure the orchestration template, and then click Save. In this example, build a tomcat application template that contains a deployment and a service.
    • Name: Set the template name.
    • Description: Enter the description for the template. This parameter is optional.
    • Template: Configure the template that conforms to Kubernetes yaml syntax rules. The template can contain multiple resource objects that are separated by ---.


  4. After the template is created, the Template List page is displayed. You can see the template under My Template.


  5. Optional: In the left-side navigation pane under Container Service-Kubernetes, choose Applications > Deployments. Then, in the upper-right corner, click Create by Template. Save one of orchestration templates built-in Container Service as your custom template.
    1. Select a built-in template and click Save Template.


    2. In the displayed dialog box, configure the name, description, and template. After completing the configurations, click Save.
      Note You can modify the built-in template.
    3. Choose Store > Orchestration Templates, the created template is displayed under My Template.


What to do next

You can quickly create an application by using the orchestration template under My Template.