$linuxjunkies
>

helm(1)

Helm is the package manager for Kubernetes that helps you define, install, and upgrade Kubernetes applications.

UbuntuDebianFedoraArch

Synopsis

helm [COMMAND] [FLAGS] [ARGS]

Description

Helm is a tool for managing Kubernetes packages called charts. It simplifies deployment of complex applications by bundling Kubernetes manifests into reusable charts with templating, versioning, and dependency management.

Helm uses three main concepts: a Chart (a package of pre-configured Kubernetes resources), a Repository (a collection of charts), and a Release (a running instance of a chart with specific configuration values).

Common workflows include searching for charts, adding repositories, installing releases, upgrading deployments, and managing chart dependencies.

Common options

FlagWhat it does
-h, --helpShow help for the command
--kubeconfigPath to the kubeconfig file to use for CLI requests
-n, --namespaceThe Kubernetes namespace where the release will be installed
--repoChart repository URL where to find the chart
-f, --valuesSpecify values in a YAML file to override chart defaults
--setSet values on the command line (e.g., --set key=value)
--dry-runSimulate the installation without actually deploying
--versionSpecify a specific version of the chart to install
-w, --waitWait for resources to be ready before marking the release as successful
--timeoutTime to wait for Kubernetes operations (e.g., 5m0s)

Examples

Add a chart repository to your local Helm configuration

helm repo add bitnami https://charts.bitnami.com/bitnami

Search for available nginx charts in added repositories

helm search repo nginx

Install the Bitnami nginx chart with release name 'my-release' in the default namespace

helm install my-release bitnami/nginx -n default

Install a chart with custom values set via command line flags

helm install my-release bitnami/postgresql --set auth.password=secret123 -n production

Install a local chart using values from a YAML configuration file

helm install -f values.yaml my-app ./mychart

Upgrade an existing release to a specific chart version

helm upgrade my-release bitnami/nginx --version 15.0.0

List all releases installed in the production namespace

helm list -n production

Uninstall a release and remove all associated Kubernetes resources

helm uninstall my-release -n default

Related commands