Install and basic configuration of helm
– install helm:
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
– install chartmuseum:
curl https://raw.githubusercontent.com/helm/chartmuseum/main/scripts/get-chartmuseum | bash
– run chartmuseum:
chartmuseum --debug --port=8081 \ --storage="local" \ --storage-local-rootdir="./chartstorage" & |
– installing charts into kubernetes:
Add the URL to your ChartMuseum installation to the local repository list:
helm repo add chartmuseum http://localhost:8081
Basic commands
– List the repositories:
helm repo list
– Initialize a Helm Chart Repository:
helm repo add bitnami https://charts.bitnami.com/bitnami
– install a chart:
helm install chartmuseum/mychart --generate-name
– Search charts in repositories::
helm search repo
– Show description of a chart::
helm show chart bitnami/postgresql
– List releases performed in helm::
helm list
Install a chart from a local directory
The first time we can specify :
helm install modeler-airflow ./modeler-airflow-chart --namespace airflow --create-namespace --debug
Alternatively, we can use this command to install or upgrade a chart:
helm upgrade -i --force modeler-airflow ./modeler-airflow-chart --debug
If we encounter this error :
Error: UPGRADE FAILED: "modeler-airflow-chart" has no deployed releases
We need to delete the secrets first:
kubectl delete secrets sh.helm.release.v1.modeler-airflow.v1
debugging commands
helm lint
is your go-to tool for verifying that your chart follows best practices.
helm template --debug
will test rendering chart templates locally.
helm install --dry-run --debug
will also render your chart locally without installing it, but will also check if conflicting resources are already running on the cluster. Setting –dry-run=server will additionally execute any lookup in your chart towards the server.
helm get manifest
: This is a good way to see what templates are installed on the server.