VK Cloud logo
Updated at April 15, 2024   08:50 AM

Installing Helm

Helm is a popular package manager for Kubernetes that can be used as an add-on to kubectl to quickly install and update applications.

Installation

  1. Make sure that you can connect to the cluster using kubectl from the host on which you plan to install the Helm client.

  2. Install the Helm client on the host in any of the ways described in the official Helm documentation.

    Choose the most current version of Helm that is compatible with the cluster in which you plan to use the client. See the Helm and Kubernetes version compatibility table in official Helm documentation.

  3. If necessary, add the path to the Helm executable file to the PATH environment variable if this was not done during installation.

  4. Make sure that the correct version of Helm is installed by running the command:

    helm version

Checking Helm operation

  1. Install NGINX from the Bitnami repository:

    helm repo add bitnami https://charts.bitnami.com/bitnami; `helm repo update; `helm install demo-helm-nginx bitnami/nginx
  2. Verify that the NGINX pod is working by running the command:

    kubectl get pods

    The output of the command should contain the demo-helm-nginx-... pod in the Running status.

    Example of the output:

    NAME                               READY   STATUS    RESTARTS   AGEdemo-helm-nginx-...                1/1     Running   0          ...
  3. Uninstall NGINX installed with Helm and remove the Bitnami repository:

    helm uninstall demo-helm-nginx; `helm repo remove bitnami

Deletion

  1. Delete the Helm client executable file.

  2. If necessary, remove Helm-related entries from the PATH environment variable.

  3. If necessary, delete directories and files created by Helm:

    • Cache directory: corresponds to the $XDG_CACHE_HOME environment variable.
    • Configuration files directory: corresponds to the $XDG_CONFIG_HOME environment variable.
    • Data directory: corresponds to the $XDG_DATA_HOME environment variable.

    The directories corresponding to these variables for different operating systems are listed in official Helm documentation.