Deploying an Application Through the Helm v3 Client

Prerequisites

Installing Helm v3

This section uses Helm v3.3.0 as an example.

For other versions, visit https://github.com/helm/helm/releases.

  1. Download the Helm client from the VM connected to the cluster.

    wget https://get.helm.sh/helm-v3.3.0-linux-amd64.tar.gz

  2. Decompress the Helm package.

    tar -xzvf helm-v3.3.0-linux-amd64.tar.gz

  3. Copy Helm to the system path, for example, /usr/local/bin/helm.

    mv linux-amd64/helm /usr/local/bin/helm

  4. Query the Helm version.

    helm version
    version.BuildInfo{Version:"v3.3.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

Installing the Helm Chart

You can use Helm to install a chart. Before using Helm, you may need to understand the following concepts to better use Helm:

For more details, see Using Helm.

  1. Search for a chart from the Artifact Hub repository recommended by Helm and configure the Helm repository.

    helm repo add {repo_name} {repo_addr}
    The following uses the WordPress chart as an example:
    helm repo add bitnami https://charts.bitnami.com/bitnami

  2. Run the helm install command to install the chart.

    helm install {release_name} {chart_name} --set key1=val1

    For example, to install WordPress, the WordPress chart added in 1 is bitnami/wordpress, the release name is my-wordpress, and mandatory parameters have been configured.

    helm install my-wordpress bitnami/wordpress \
         --set mariadb.primary.persistence.enabled=true \
         --set mariadb.primary.persistence.storageClass=csi-disk \
         --set mariadb.primary.persistence.size=10Gi \
         --set persistence.enabled=false
    Run the helm show values {chart_name} command to view the configurable options of the chart. For example, to view the configurable items of WordPress, run the following command:
    helm show values bitnami/wordpress

  3. View the installed chart release.

    helm list

Common Issues