Sample Charts
- Sample charts use images obtained from open source communities to provide basic cluster and chart functions. CCE is not responsible for any fault that may occur after a sample chart is used. For commercial scenarios requiring security, stability, and reliability, you are advised to use HUAWEI CLOUD middleware and database services.
- Helm is a packaging tool for managing Kubernetes applications. For details, see the Helm official website.
Sample charts are provided by Helm to help you deploy workloads. Currently, sample charts include redis, etcd, mysql-ndb, mongodb, istio, zookeeper, elasticsearch, kibana, and nginx-ingress.
Notes and Constraints
Only clusters of Kubernetes 1.15 or earlier are supported.
Installing a Chart
This following uses etcd as an example to describe how to create a workload using a sample chart. The procedure for installing other charts is the same.
- Log in to the CCE console. In the navigation pane, choose Charts > Sample Charts.
- On the Sample Charts tab page, you can view all available charts.
- Sample Charts: provided by Helm to deploy workloads.
You can click a chart to view the chart details, including chart introduction (overview and example), version record (change history of the current chart), and installation record (list of workloads created from the chart by the user).
- Releases: list of workloads that are installed using a chart.
- Sample Charts: provided by Helm to deploy workloads.
- On the Sample Charts tab page, click Install Chart under a chart name, for example, etcd. Read the displayed information, select I have read the above statements, and click OK to start installing the chart.
- Sample charts use images obtained from open source communities to provide basic cluster and chart functions.
- CCE is not responsible for any fault that may occur after an official chart is used.
- For commercial scenarios requiring security, stability, and reliability, you are advised to use HUAWEI CLOUD middleware and database services.
- Set the installation parameters listed in Table 1. The parameters marked with an asterisk (*) are mandatory.
Table 1 Installation parameters Parameter
Description
* Release Name
Name of a release, for example, etcd-test.
Chart Name
Name of the chart that is being installed, for example, etcd.
* Chart Version
Version of a sample chart.
* Cluster
Cluster to which the workload belongs.
* Namespace
Namespace to which the new workload belongs. By default, this parameter is set to default.
* Workload Deployment Specifications
Select a workload specification. You can also click Add Custom Specifications to customize the workload specification based on service requirements.
- After the configuration is complete, you can choose to install all or custom installation.
- (Optional) If you select Next, set related parameters.
- Set the storage and access mode parameters listed in Table 2.
Table 2 Advanced settings for custom installation Parameter
Description
Cloud Storage
- If this parameter is set to Yes, the cloud storage is enabled.
- You can use the default storage allocation or click Edit to modify the storage subtype and capacity.
Services
The default access setting is Internal access > Intra-cluster access.
- Intra-cluster access: The system automatically allocates a virtual IP address that can be accessed only by containers in a cluster.
- Intra-VPC access: A workload can be accessed by other workloads in the same VPC through a node IP address.
You can also click Edit to modify the access settings. For details about the access settings, see Networking.
- Click Next, review the specifications, and click Submit.
- Set the storage and access mode parameters listed in Table 2.
- Return to Releases tab page. The execution status is Installing. Wait until the installation is complete.
- Check the release status. After the installation is successful, the value of Execution Status on the Releases tab page is Installation successful.
- Click View Access Mode to view the parameters such as the access address.
- Click the installed release to view the details.
Table 3 Release details Tab
Description
Workload List
- Running statuses, types, and number of pods of workloads.
- Click a workload name to view details about the workload, such as CPU usage, memory usage, events, and container details.
Release Parameters
Parameters that are configured.
Upgrading a Release
- Log in to the CCE console. In the navigation pane, choose Charts > Sample Charts. Then, click the Releases tab.
- Click Upgrade in the row where the desired workload resides and set the parameters for the workload.
- Select a chart version.
- Follow the prompts to modify the chart parameters.
- Select an upgrade mode.
- If no more configuration is required, click Upgrade at One Click.
- To change the access mode, click Upgrade. For details about how to set the access mode, see Table 2. Click Next and then click Submit.
- Go back to the release list. If the release status changes to Upgrade successful, the workload is successfully upgraded.
Rolling Back a Release
- In the navigation pane on the CCE console, choose Charts > Sample Charts. Then, click the Releases tab.
- 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 Release
- Log in to the CCE console. In the navigation pane, choose Charts > Sample Charts. Then, click the Releases tab.
- Click More > Uninstall next to the release to be uninstalled, and click OK. Exercise caution when performing this operation because workloads cannot be restored after the release is uninstalled.
Last Article: Charts (Helm)
Next Article: My Charts
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.