On the CCE console, you can upload a Helm chart package, deploy it, and manage the deployed pods.
The Redis workload is used as an example to illustrate the chart specifications.
A chart package is named in the format of {name}-{version}.tgz, where {version} indicates the version number in the format of Major version number.Minor version number.Revision number, for example, redis-0.4.2.tgz.
The chart name {name} can contain a maximum of 64 characters.
The version number must comply with the semantic versioning rules.
The directory structure of a chart is as follows:
redis/ templates/ values.yaml README.md Chart.yaml .helmignore
Parameter |
Description |
---|---|
* templates |
Stores all templates. |
* values.yaml |
Describes configuration parameters required by templates. NOTICE:
Make sure that the image address set in the values.yaml file is the same as the image address in the container image repository. Otherwise, an exception occurs when you create a workload, and the system displays a message indicating that the image fails to be pulled. To obtain the image address, perform the following operations: Log in to the CCE console. In the navigation pane, choose Image Repository to access the SWR console. Choose My Images > Private Images and click the name of the uploaded image. On the Image Tags tab page, obtain the image address from the pull command. You can click |
README.md |
A markdown file, including:
|
* Chart.yaml |
Basic information about the chart. Note: The API version of Helm v3 is switched from v1 to v2. |
.helmignore |
Files or data that does not need to read templates during workload installation. |
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.
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.
|
On the Releases tab page, you can view the installation status of the release.
In the workload list, if the status is Rollback successful, the workload is rolled back successfully.