Helm¶
Helm se présente comme the package manager for Kubernetes.
Principe de fonctionnement¶
- Helm génère et applique les manifests au format YAML
- Le langage de templating est Go templating language
Installation¶
- helm.sh - Installing Helm - From Script
- helm.sh - Installing Helm - From Apt (Debian/Ubuntu)
- helm/install.sh reprend la méthode "From Script" ci-dessus :
curl -sS https://mborne.github.io/outils/helm/install.sh | bash
Quelques dépôts¶
Bitnami est devenu payant
Voir Upcoming changes to the Bitnami catalog (effective August 28th, 2025)
| NAME | URL |
|---|---|
| bitnami | https://charts.bitnami.com/bitnami/ |
| jenkins | https://charts.jenkins.io |
| opensearch | https://opensearch-project.github.io/helm-charts/ |
| traefik | https://helm.traefik.io/traefik |
Voir aussi artifacthub.io
Utilisation¶
Gestion des dépôts¶
# Add bitnami's repository
helm repo add bitnami https://charts.bitnami.com/bitnami
# Update repositories
helm repo update
# List repositories
helm repo list
# Find charts in a given repository
helm search repo bitnami
# Find charts versions
helm search repo bitnami/nginx-ingress-controller -l
Déployer avec Helm¶
Jenkins¶
# Ajout du dépôt jenkins
helm repo add jenkins https://charts.jenkins.io
# Mise à jour des dépôts
helm repo update
# Création d'un namespace d'accueil
kubectl create namespace jenkins-system
# Installation ou mise à jour
helm --namespace=jenkins-system upgrade --install jenkins jenkins/jenkins
Création d'un chart¶
La commande helm create whoami génère un modèle de chart pour le déploiement d'une application (nginx) qu'il sera possible d'adapter pour sa propre application.
Pour vos premiers pas, noter que :
- Les variables d'environnement sont toujours des strings (il faudra les échapper comme suit
{{ .Values.database.port | quote }}) - Les variables
globalsont accessibles depuis tous les sous charts
Resources¶
- helm.sh - Installing Helm
- helm.sh - Quickstart
- artifacthub.io - Find, install and publish Kubernetes packages
- helm.sh - The Chart Best Practices Guide
- hub.docker.com - alpine/helm
- github.com - mborne/docker-devbox où de nombreux scripts
k8s-install.shs'appuient sur des déploiements Helm. - github.com - mborne/helm-charts : quelques charts helm développer pour comprendre les mécanismes de publication sous forme d'image docker avec GitHub Container Registry (ex :
oci://ghcr.io/mborne/helm-charts/postgres-dev) - blog.stephane-robert.info - Introduction à Helm