Working with Helm - The Basics
Working with Helm - The Basics
-
All operations are ran using
helm cli. -
To invoke the
helm cli, runhelm. -
Can run
helm --help - To see what repository-related commands we can take, just run:
helm repo --help -
Can dig even deeper with sub-commands and what parameters those support.
helm repo update --help
-
All charts are in artifacthub.io
- Check for the Official / Verified publisher badge.
-
It is up to the chart developers to decide what is important in the subscription page.
- The
helm searchcommand looks for an additional sub-command:helm search wordpress- However, need to add
huborrepoafter the above.hubrefers toartifacthub. If you want to search in particular repositories, use therepooption.
- However, need to add
-
We can deploy the application using two commands:
- The below example is with Wordpress:
helm repo add bitnami https://charts.bitnami.com/bitnami
-
It has to be added as a repository to our local
helmsetup, when we run theinstallcommand,helmcan then find the chart that needs to be installed. -
Deploy the application to the cluster using the
helm install my-release bitnami/wordpress -
You get good instructions on how to use the Wordpress install.
-
When a chart is deployed, it is deployed as a Release. To view all existing releases, run the
helm listcommand.- Also good to see what hasn’t been updated in a long time.
-
Deleting the app by hand would need all traces of the cluster removed.
- When we have the name of the release, can remove all Kubernetes objects with one simple command:
helm uninstall my-release -
The
helm repocommand can be used to add, remove, list etchelmrepositories. -
The
helm repo listcommand lists existing repositories. -
The
helm repo updatecommand is similar to asudo apt get updatefunction.- This is good to run often so the latest repo information is available and nothing becomes stale