Helm

Contents

    The de facto package manager for Kubernetes
    Great for third parties aplications that needs to be made available broadly.

    https://tanzu.vmware.com/developer/tv/enlightning/31/
    https://blog.wescale.fr/helm-pour-les-nuls-et-moins-nuls

    Project Overview The latest version of Helm is v3! In blog posts, double check which version is used!

    Top level CNCF Project

    Introduction

    Scope : template, package with versionning, register in a registry, deploy with configuration, monitor.

    templates + values = kubernetes yaml

    Regarding the templating part, the issue is that if a placeholder is missing... you need to fork !
    Or Kustomize to the rescue, before deploying. So we have helm, kustomize, deploy.
    An alternative is to templatize everything, which breaks the lisibility of the yaml definition.
    The advantage is that configuration is easy. Just a set of key value pairs.

    Key concepts

    Lifecycle management

    Helm release : set of deployed k8s resources using Helm

    lifeycle management, and hooks available

    Helm repository

    Helm chart can be packaged using .tgz and hosted on a Helm repository, which is basically a HTTP server with an index.yaml file. index.yaml packages all Helm chart packages Chart.yaml file contents. So we can use github pages, for instance ;-)

    helm repo add bitnami https://charts.bitnami.com/bitnami
    helm search repo bitnami
    helm repo update

    Helm charts can be OCI artifacts now, and can be pushed to OCI registry.
    https://docs.docker.com/docker-hub/oci-artifacts/
    DockerHub, artifactory,...

    Templating

    See : https://helm.sh/docs/topics/charts/#predefined-values

    Reusable functions : partials

    Quick start

    Commands are executed from the devlaptop, not from inside the cluster!

    curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
    helm repo add bitnami https://charts.bitnami.com/bitnami
    helm repo update
    helm install ...

    helm status
    helm list
    helm upgrade

    Proudly Powered by Zim 0.75.2.

    Template by Etienne Gandrille, based on ZeroFiveEight and using JQuery Toc Plugin.