How-To Use Helm 3 to Deploy Applications in Platform9 Managed Kubernetes Environment?

Problem

How-To Use Helm 3 to Deploy Applications?

Environment

  • Platform9 Managed Kubernetes - v4.3 and Higher

  • Helm V3

  • Linux OS

  • Mac OS

Procedure

Helm 3 doesn’t have the server/client architecture like Helm 2. There is no tiller server component. So the installation is just for the Helm command-line component which interacts with Kubernetes through your kubectl configuration file and the default Kubernetes RBAC.

Follow the below steps to install Helm on the system.

  1. Download the installation script available for Helm installation.

$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
  1. Change the permission for this script and execute the script.

$ chmod 700 get_helm.sh
$ ./get_helm.sh
  1. Check the Helm version installed. By default, this script will install the latest stable version of Helm.

$ helm version
  1. You can add the repositories to Helm by using the below command.

$ helm repo add stable [url for repo]
  1. Use the below command to search for the available Helm charts in the added repository.

$ helm search repo stable
  1. Download the kubeconfig file for the cluster on which you want to deploy the application and export it.

$ export KUBECONFIG=/path/to/kubeconfig.yaml
  1. Get the cluster contexts available and switch to the cluster context in which you want to deploy the application.

$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* default cluster1 user@address.com default
cluster1-pf9 cluster1-pf9 user@address.com default

$ kubectl config use-context cluster1-pf9
  1. Run the below command to install the chart.

$ helm install [chart-name] [repo-name]/[chart-name]
  1. Check if the installation is successful by running the following command:

$ helm ls

Additional Information

Refer to the official Helm documentation for more details on different ways to install helm.