Helm notes

Published (last updated )

# List configured repositories
helm repo list

# Add a repository
helm repo add some-name https://example.com/dev-charts

# Remove a repository
helm repo remove some-name

# List installed releases
helm list

# Show configuration for an installed release
helm get values foo-0.0.1

# Show configuration for a (not-yet-installed) chart in a repository
helm show values bitnami/postgresql

# Install a helm chart from a repository
helm install bitnami/postgresql

# Install a helm chart from a local directory
helm install foo charts/foo

# Dry-run (fake) install a chart and print the rendered output
helm install foo charts/foo --debug --dry-run

# Pass along configuration key/values to an install
echo '{postgresql.auth.database: foo, postgresql.auth.username: foo}' > values.yaml
helm install -f values.yaml bitnami/postgresql

# Uninstall
helm uninstall some-release

# Download and look at the files for a published chart, without installing
helm pull bitnami/postgresql

# Create your own chart (beginning template)
helm create my-own-thing

# Package it as a tgz
helm package my-own-thing

# Check your chart for formatting and correctness
helm lint my-own-thing

# Using chart tests
helm install demo demo --namespace default
helm test demo

Chart directory structure

postgresql/
  Chart.yaml          # A YAML file containing information about the chart
  LICENSE             # OPTIONAL: A plain text file containing the license for the chart
  README.md           # OPTIONAL: A human-readable README file
  values.yaml         # The default configuration values for this chart
  values.schema.json  # OPTIONAL: A JSON Schema for imposing a structure on the values.yaml file
  charts/             # A directory containing any charts upon which this chart depends.
  crds/               # Custom Resource Definitions
  templates/          # A directory of templates that, when combined with values,
                      # will generate valid Kubernetes manifest files.
  templates/NOTES.txt # OPTIONAL: A plain text file containing short usage notes

About dependencies

In Helm, one chart may depend on any number of other charts. These dependencies can be dynamically managed using the dependencies field in Chart.yaml where you would use the helm dep up command to install them to charts/ directory, or they can be brought in to the charts/ directory manually.

About templates/NOTES.txt

This file will be printed out after installation, and when viewing the status of a release. This file is evaluated as a template, and can be used to display usage notes, next steps, or any other information relevant to a release of the chart. For example, instructions could be provided for connecting to a database, or accessing a web UI. Since this file is printed to STDOUT when running helm install or helm status, it is recommended to keep the content brief and point to the README for greater detail.

Chart notes

About library charts

Chart tests

See: https://helm.sh/docs/topics/chart_tests/