Product templates

更新时间:
复制 MD 格式

Product templates offer a unified and efficient way to manage application templates that follow the Kubernetes Helm standard. This topic describes how to upload private templates and import public templates to the private platform.

Private platform

The private platform acts as your private repository and stores the following two types of templates.

  • Platform templates

    These are official sample templates provided and maintained by the SOFAStack platform. They are ready to use and include templates for products such as Redis, etcd, MySQL, MongoDB, elasticsearch-exporter, and Kibana.

    Note

    You can only view and install these templates. You cannot modify them.

  • Private templates

    These templates allow you to manage and maintain your own custom templates. Private templates are specific to the current cluster. You can create, read, update, and delete their content.

Upload a private template

Note

You can upload an unlimited number of templates.

Prerequisites

A Helm-compliant product template has been created.

Procedure

  1. Log on to the console. In the left navigation pane, click Application Store > Product Templates to open the private platform page.

  2. Click Upload Product Template and select your custom product template.

    Note

    You can only upload tgz or zip files. Use the helm package command to package your template.

    After the template is successfully uploaded, it appears as a card. Click the card to open the Template details page. From there, you can perform the following actions:

    • On the Template version tab, you can view, download, or delete previous versions.

    • On the Content details tab, you can view and edit the template content. After you make changes, click Save.

Public platform

The public platform is a global repository. You cannot directly modify its content. To make changes, you must import the template to your private platform.

Import to the private platform

To customize a template from the public platform, you must first import it to your private platform.

  1. Log on to the console. In the left navigation pane, click Application Store > Product Templates. Click the Public platform tab.

  2. On the card for the desired template, click Import to Private Platform, and then click OK.

    After the template is imported successfully, it appears on your private platform. You can then edit its content and manage its versions.