Product templates provide a unified and efficient way to manage application templates based on the Kubernetes Helm standard.
Private platform
The private platform acts as your private repository. It stores the following two types of templates.
Platform templates are official sample templates provided and maintained by SOFAStack. You can use them out of the box. You can view and install these templates, but you cannot modify their information.
Private templates allow you to manage and maintain your own custom templates. The source and usage of these templates are limited to the current cluster. You can add, delete, modify, and view the content of these templates.
Upload a private template
You can upload an unlimited number of templates.
Prerequisite
You must have a product template that complies with Helm specifications. For more information about application development standards, see the official documentation.
Procedure
Log on to the Container Application Service console. In the navigation pane on the left, click App Store > Product Templates to open the private platform page.
Click Upload Product Template. In the dialog box that appears, select your custom product template.
NoteYou can only upload files in .tgz or .zip format. Use the
helm packagecommand to package your template.After a successful upload, the template appears as a card on the list page. Click the card to open the Template Details page, where you can do the following:
On the Template Version tab, view, download, or delete previous versions.
On the Template Details tab, view and edit the template content. After you make changes, click Save.
Public platform
The public platform is a global repository where you can import third-party template sources. You cannot modify the content of templates on the public platform, but you can install them or copy them to your private platform.
Add an external source
You can add up to five external sources.
Log on to the Container Application Service console. In the navigation pane on the left, click App Store > Product Templates. Click the Public Platform tab to open the public platform page.
Click Add External Source. In the dialog box that appears, enter the following information:
External Source Name: Must contain only letters, digits, underscores (_), and hyphens (-).
External Source URL: Must start with `http` or `https` and comply with URL standards.
Click OK.
After the source is added, templates from the external repository are automatically imported.
Import to the private platform
To customize a public template, first import it to your private platform.
Log on to the Container Application Service console. In the navigation pane on the left, click App Store > Product Templates. Click the Public Platform tab to open the public platform page.
On the template card, click Import to Private Platform. In the dialog box that appears, click OK.
After a successful import, you can search for the template on your private platform. You can then edit its content and manage its versions.