Deploying an Application from a Chart

On the CCE console, you can upload a Helm chart package, deploy it, and manage the deployed pods.

Notes and Constraints

Chart Specifications

The Redis workload is used as an example to illustrate the chart specifications.

Uploading a Chart

  1. Log in to the CCE console and click the cluster name to access the cluster console. Choose App Templates in the navigation pane and click Upload Chart in the upper right corner.
  2. Click Select File, select the chart to be uploaded, and click Upload.

    When you upload a chart, the naming rule of the OBS bucket is changed from cce-charts-{region}-{domain_name} to cce-charts-{region}-{domain_id}. In the old naming rule, the system converts the domain_name value into a Base64 string and uses the first 63 characters. If you cannot find the chart in the OBS bucket with the new name, search for the bucket with the old name.

Creating a Release

  1. Log in to the CCE console and click the cluster name to access the cluster console. In the navigation pane, choose App Templates.
  2. On the My Charts tab page, click Install of the target chart.
  3. Set workload installation parameters by referring to Table 2.

    Table 2 Installation parameters

    Parameter

    Description

    Instance

    Unique name of the chart release.

    Namespace

    Namespace to which the workload will be deployed.

    Select Version

    Version of a chart.

    Configuration File

    You can import and replace the values.yaml file or directly edit the chart parameters online.

    NOTE:

    An imported values.yaml file must comply with YAML specifications, that is, KEY:VALUE format. The fields in the file are not restricted.

    The key value of the imported values.yaml must be the same as that of the selected chart package. Otherwise, the values.yaml does not take effect. That is, the key cannot be changed.

    1. Click Select File.
    2. Select the corresponding values.yaml file and click Open.

  4. Click Install.

    On the Releases tab page, you can view the installation status of the release.

Upgrading a Chart-based Workload

  1. Log in to the CCE console and click the cluster name to access the cluster console. Choose App Templates in the navigation pane. In the right pane, click the Releases tab.
  2. Click Upgrade in the row where the desired workload resides and set the parameters for the workload.
  3. Select a chart version for Chart Version.
  4. Follow the prompts to modify the chart parameters. Confirm the modification and click Upgrade.
  5. If the execution status is Upgraded, the workload has been upgraded.

Rolling Back a Chart-based Workload

  1. Log in to the CCE console and click the cluster name to access the cluster console. Choose App Templates in the navigation pane. In the right pane, click the Releases tab.
  2. Click More > Roll Back for the workload to be rolled back, select the workload version, and click Roll back to this version.

    In the workload list, if the status is Rollback successful, the workload is rolled back successfully.

Uninstalling a Chart-based Workload

  1. Log in to the CCE console and click the cluster name to access the cluster console. Choose App Templates in the navigation pane. In the right pane, click the Releases tab.
  2. Click More > Uninstall next to the release to be uninstalled, and click Yes. Exercise caution when performing this operation because releases cannot be restored after being uninstalled.