Creating and Deploying an Application Using the Custom Template
You can customize an application by customizing deployment actions based on project requirements. This section describes how to use a custom template to create and deploy an application.
A custom template can be used in the following scenarios:
- If the existing system templates cannot meet your requirements, you can create a custom template on the orchestration template management page or create one using the blank template.
- You can also customize a template on the application creation page or customize a template from an existing application for other members in the project to quickly create applications.
A custom template can be directly used during application creation.
Generating an application using a custom template: Choose Templates > Custom Templates, and click in the Operation column of the target template to generate an application within a few clicks.
Customizing from a Blank Template
- Go to the CodeArts homepage and click the target project name to access the project.
- Choose CICD > Deploy.
- On the Applications tab page, click Create Application, enter basic information and an application is created. You can modify basic information such as the Name, Description, and Execution Resource Pool as required. For details, see Editing Basic Application Information. Then click Next.
- Click Blank Template to enter the Deployment Actions tab page.
- On the Deployment Actions page, add deployment actions based on service requirements.
- Click Save as Custom Template. In the dialog box displayed, enter a template name and description, and click OK.
Customizing a Template from an Existing Application
- Go to the CodeArts homepage and click the target project name to access the project.
- Choose CICD > Deploy.
- On the Applications tab page, select an application to be deployed and find its Operation column. Click on the right of the application, click Edit to view the detailed configuration information of the application.
- Edit the deployment actions based on service requirements.
- Click Save as Custom Template. In the dialog box displayed, enter a template name and description, and click OK.
Creating a Custom Template on the Application Creation Page
- Go to the CodeArts homepage and click the target project name to access the project.
- Choose CICD > Deploy.
- On the Applications tab page, click Create Application. The Basic Information page is displayed. You can retain the default values of the basic parameters or modify the parameters based on your requirements.
- Click Next, select Custom Templates, and click New Template on the right of the Custom Templates.
If no template is available, you can click New Template to create a custom template.
- Configure basic information, deployment actions, and parameter settings as needed.
- Click Save in the upper right corner.
Creating a Custom Template on the Application Template Page
- Go to the CodeArts homepage and click the target project name to access the project.
- Choose CICD > Deploy.
- Click Templates and click All.
- Click Create Custom.
- Edit the basic information, deployment actions, and parameters based on service requirements. For details, see Creating an Application with a Blank Template.
- Click Save in the upper right corner.
Favoriting, Editing, or Deleting a Custom Template
- Go to the CodeArts homepage and click the target project name to access the project.
- Choose CICD > Deploy.
- Choose Templates > Custom Templates.
- Click next to a template to add it to your favorites. Then the template will be pinned on the top of the custom template list.
- Click in the row of a template to be edited and click Edit.
- Click in the row of a custom template to be deleted and click Delete. Note that the template cannot be restored after being deleted.
For other operations such as configuring deployment actions, setting application parameters, and host environment, deploying applications, and viewing results, see deployment actions in Creating and Deploying an Application with a Blank Template.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot