Zachi Nachshon
Zachi Nachshon Software Architect and DevOps Engineer. Passionate technologist, OSS enthusiast and Raspberry Pi addict.

Installing Helm, Kubernetes Package Manager

Installing Helm, Kubernetes Package Manager

Learn how to configure the deployment of multiple Kubernetes resources as a single unit using Helm package manager.


Helm-CLI

Mostly TL;DRs for installing the Helm CLI.

Install

Install using your favorite package manager, consult with the official docs for additional information.

1
2
# tl;dr for macOS
brew install helm

Uninstall

Follow the removal instructions of the package manager you’ve used previously.

1
2
# tl;dr for macOS
brew uninstall helm


Charts

Helm Charts are the actual “packages” managed by Helm. A chart is a just another YAML file which consists of custom attributes that eventually gets converted into Kubernetes YAML resources and deployed into the cluster.

Why? Instead of managing multiple resources on our own and their respective Kubernetes YAML resource files, we can wrap them all into a single Helm chart and address them as a unit, meaning, install/update/uninstall using a single command. Charts can go from a simple hello-world application to a fully blown web application i.e servers, databases, cache etc..


In order to be able to search for charts we’ll have to find its respective Helm repository that returns its metadata. Search in artifacthub.io for the Helm repository for the chart that you wish to use.

  1. We’ll add the containous Helm repository hosting the traefik charts metadata

    1
    
    helm repo add traefik https://containous.github.io/traefik-helm-chart
    
  2. Update local Helm chart repository cache

    1
    
    helm repo update
    
  3. Search for a specific chart by name

    1
    2
    3
    4
    
    helm search repo traefik
    
    # NAME              CHART VERSION   APP VERSION
    # traefik/traefik   9.1.1           2.2.8   
    


Install

Install a Helm chart directly from the command line. For additional installation options read here.

1
2
3
4
helm install traefik \
    --namespace traefik \
    traefik/traefik \
    --version 9.1.1


Upgrade

Upgrade or override existing values of the previously deployed chart with a new chart release. For additional upgrade options read here.

1
2
3
4
5
helm upgrade traefik \
    --namespace traefik \
    --set="additionalArguments={--log.level=DEBUG}" \
    traefik/traefik \
    --version 9.1.1


Summary

This post is just the tip of the iceberg regarding Helm charts possibilities, please refer to the official Helm docs for further reading.

Please leave your comment, suggestion or any other input you think is relevant to this post in the discussion below.

Thanks !


Credits: Logo by helm.sh

comments powered by Disqus