# Creating a Workload from a Chart

#### Creating a Chart-based Workload

1. Log in to the CCE console. In the navigation pane, choose Charts > Uploaded Chart.
2. In the list of uploaded charts, click Install.
3. Set the installation parameters listed in Table 1. The parameters marked with an asterisk (*) are mandatory.

   Table 1 Installation parameters
   Parameter | Description
   --- | ---
   * Release Name | Unique name of the chart release.
   * Chart Version | Chart version by default.
   * Cluster | Cluster where the workload will be deployed.
   * Namespace | Namespace to which the workload will be deployed.

   Advanced Settings

   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 Import Configuration File.
   2. Select the corresponding values.yaml file and click Open.

4. After the configuration is complete, click Next.
5. Confirm the configuration and click Submit.
6. Click Back to Release List to view the running status of the chart-based workload (also called release), or click View Release Details to view details about the release.

#### Upgrading a Chart-based Workload

1. Log in to the CCE console. In the navigation pane, choose Charts > Uploaded Charts. Click the Template Instances 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. Click Upgrade, and then click Submit.
5. Click Back to Release List. If the chart status changes to Upgrade successful, the workload is successfully upgraded.

#### Rolling Back a Chart-based Workload

1. Log in to the CCE console. In the navigation pane, choose Charts > Uploaded Charts. Click the Template Instances 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. In the navigation pane, choose Charts > Uploaded Charts. Click the Template Instances 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.

Parent topic: My Charts