OAM product templates
The App Store in Container Application Service provides application templates based on the Kubernetes Helm standard. It also provides application Component and Trait templates that comply with the Open Application Model (OAM) specification. This topic describes how to add and publish OAM product templates in the Container Application Service console.
Add an OAM product template
Log on to the Container Application Service console. In the navigation pane on the left, click App Store > OAM Product Templates.
Click Add Product Template. On the page that appears, configure the following template information:
OAM product template name: Required. Enter a custom name for the template. The name can contain lowercase letters, digits, and hyphens. It must start with a letter and end with a letter or digit.
Component orchestration: Optional. Defines the components and their corresponding O&M policies for the application.
Click Add Component. In the window that appears on the right, configure the following component information, and then click Submit.
Component name: Required. Enter a name for the component. The default value is helloworld.
Workload type: Required. Currently, only CafeContainerizedworkload is supported.
Container information: Required. Use the format
{{ .Values.$componentName.imageUrl }}for custom parameters. In this format,$componentNamemust be the same as the component name that you entered, andimageUrlis a custom parameter.Parameters: Optional. Configure parameters for the environment and authentication, such as accesskey, secretkey, endpoint, and instanceid. You can add more parameters as needed.
After the component is added, click Add O&M Feature, select an O&M feature (CafeService or Strategy), configure the container information, and then click Submit.
Version number: Required. Enter a version number for the product template, such as
v1.0.1. This simplifies future version maintenance.Description: Optional. Enter a description for the product template.
Click Submit. The template is created.
Go to the details page of the product template and click Activate Version.
NoteAfter a version is activated, you cannot modify the template information for that version. You can add a new version based on the activated version.
Publish an OAM product template
On the details page of the OAM product template, select the version that you want to publish and click Create Release.
In the window that appears on the right, follow the prompts to select or enter the release information for the template. This includes the workspace, namespace, application, and specific release parameters.
NoteEnsure that the release parameters are correct. The release process uses the parameters that you configure in this step.
Click Create Release. The status of the template changes to Releasing. After the release is created, a release ticket is generated. Click View Release Ticket to go to the release ticket page.
View OAM product releases
On the OAM Product Releases page, you can view the release information for all OAM product templates.
In the Container Application Service console, in the navigation pane on the left, click App Store > OAM Product Releases.
Select the namespace of the release that you want to view.
In the list of released product templates, find the desired template. You can then view its information or perform the following operations:
You can view the template's version number, release status, and the time of the last operation.
Click the name of the released product template to go to its details page.
In the Operations column, click Delete and confirm the action to delete the release information.
For product templates that are successfully released, click View Release Ticket in the Operations column. You will be redirected to the Application Releases > Release Tickets page to view detailed information about the release ticket.