Easily Install Helm with This Simple Method

Helm 3 Installation

Before you proceed with these installation steps, make sure your workstation's kubectl context is set to the appropriate cluster to utilize Helm within your Kubernetes cluster. Inside of Kubernetes, Helm makes use of the standard kubeconfig file, which is normally found at "~/.kube/config." You can set the $KUBECONFIG environment variable to use a different file.

Using the following command, obtain the most recent Helm 3 installation script from the official Helm documentation (https://helm.sh/docs/intro/install/)

$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3

After downloading, grant execute permissions to the script and run it:

$ chmod 700 get_helm.sh

$ ./get_helm.sh

To validate the Helm installation, execute the "helm" command:

#edit the sudoers file by vi /etc/sudoers

$ helm

Hub.helm.sh

Next, add the public stable Helm repository for installing stable charts. Use the following commands:

$ helm repo add nginx-stable https://helm.nginx.com/stable

$ helm repo add nginx https://helm.nginx.com/stable

$ helm repo update

You can install a reliable Nginx chart, as an example, to test the setup:

$ helm install nginxingress nginx-stable/nginx-ingress

$ helm install <deploymentName> <chartName>

Replace "<deploymentName>" and "<chartName>" with your specific deployment and chart names.

You can list the installed Helm charts with the following command:

$ helm ls

You can expand the number of repositories by adding more as needed. Here's an example of adding the "stable" repository and searching for charts within it:

$ helm repo add stable https://kubernetes-charts.storage.googleapis.com/

$ helm search repo stable

These steps will ensure that Helm is properly installed and configured on your Kubernetes environment.