Helm
Last Updated: 2023-02-16
Install / Uninstall
# Install bar/baz from the repo and name it foo
$ helm install foo bar/baz
# Generate a name
$ helm install bar/baz --generate-name
# Install from an unpacked chart dir
$ helm install foo /path/to/baz
# Install from a full url
$ helm install foo https://example.com/charts/foo-1.2.3.tgz
# Install a local chart archive
$ helm install foo foo-0.1.1.tgz
# Uninstall
$ helm uninstall foo
$ helm uninstall foo --keep-history
Inspect
# List all deployed releases
$ helm list
# Include uninstalled releases
$ helm list --all
# Check status
$ helm status foo
$ helm get values foo
Upgrade / Rollback / History
# Upgrade
$ helm upgrade foo bar/baz
# Check history of a chart
$ helm history <chart> -n <namespace> --kubeconfig /path/to/kubeconfig
# If something goes wrong, rollback manually
$ helm rollback <chart> -n <namespace> --kubeconfig /path/to/kubeconfig
Repo
# List repos
$ helm repo list
# Add repo
$ helm repo add dev https://example.com/dev-charts
# Update repo
$ helm repo update
Charts
# Create charts
$ helm create my-chart
# Validate and format
$ helm lint
# package the chart up for distribution
# creates a .tgz that is ready for `helm install`
$ helm package deis-workflow