Helm Overview

Topics

  • What is Helm ?
  • What is Helm chart ?
  • What is Helm release ?
  • What is Helm repo ?

What is Helm ?

Helm is a packager for Kubernetes that bundles related manifest files and packages them into a single logical deployment unit: Chart. Simplified, for many engineers Helm makes it easy to start using Kubernetes with real applications.

What is Helm Chart ?

A Helm chart is a package that contains all the necessary resources to deploy an application to a Kubernetes cluster. This includes YAML configuration files for deployments, services, secrets, and config maps that define the desired state of your application.

What is Helm release ?

A Release is an instance of a chart running in a Kubernetes cluster. One chart can often be installed many times into the same cluster.

What is Helm repo ?

At a high level, a chart repository is where packaged charts can be stored and shared.

Helm Installation

  • Download and Installation of Helm from the link

  • Install using script

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
  • Check helm version
helm version
  • Click here to check the helm version and k8s version compatiblity

Prerequisites

The following prerequisites are required for a successful and properly secured use of Helm.

  • A Kubernetes cluster
  • Installed and configured Helm.

Initialize a Helm Chart Repository

helm repo add bitnami https://charts.bitnami.com/bitnami
  • Check newly added repo.
helm repo ls 
  • How to search package in repo
helm search repo bitnami
  • Update helm repo
helm repo update  
  • Install an Example Chart
helm install bitnami/mysql --generate-name
  • Check all the release installed
helm list
  • Uninstall a Release
helm uninstall <mysql-1612624192>
  • Check the history if the flag –keep-history is provided
 helm status mysql-1612624192
  • Customizing the Chart Before Installing
helm show values bitnami/wordpress
  • make the changes in values.yaml file and use below command to install
helm install -f values.yaml bitnami/wordpress --generate-name
  • How to get the value file
 helm get values happy-panda
  • How to rollback to previous version
helm rollback happy-panda 1
  • How to check packages in all projects
helm list --all
  • Check all repositories
helm repo list

Creating Your Own Charts

  • Use below command
helm create deis-workflow
  • Validate your helm chart
helm lint .
  • How to package your helm chart
 helm package deis-workflow
  • How to install charts
helm install deis-workflow ./deis-workflow-0.1.0.tgz
  • How to download the charts to your local vm
helm pull [chart]
  • Displaya list of a chart’s dependencies
helm dependency list [chart]