How-To Use Helm 3 to Deploy Applications?
- Platform9 Managed Kubernetes - v4.3 and Higher
- Platform9 Managed Kubernetes Free Tier
- Helm V3
- Linux OS
- Mac OS
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.
- 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
- Change the permission for this script and execute the script.
$ chmod 700 get_helm.sh
- Check the Helm version installed. By default, this script will install the latest stable version of Helm.
$ helm version
- You can add the repositories to Helm by using the below command.
$ helm repo add stable <url for repo>
- Use the below command to search for the available Helm charts in the added repository.
$ helm search repo stable
- Download the kubeconfig file for the cluster on which you want to deploy the application and export it.
$ export KUBECONFIG=/path/to/kubeconfig.yaml
- 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 firstname.lastname@example.org default
cluster1-pf9 cluster1-pf9 email@example.com default
$ kubectl config use-context cluster1-pf9
- Run the below command to install the chart.
$ helm install <chart-name> <repo-name>/<chart-name>
- Check if the installation is successful by running the following command:
$ helm ls
Refer to the official Helm documentation for more details on different ways to install helm.