Post

Helm Commands

Helm CMDsheet

Helm Commands

Commonly Used Helm Commands with Examples

Helm is a powerful package manager for Kubernetes, simplifying the deployment and management of applications.

Commonly Used Commands

CommandDescriptionExample
helm repo addAdd a new Helm chart repository.helm repo add stable https://charts.helm.sh/stable
helm repo updateUpdate information of available charts locally.helm repo update
helm search repoSearch for charts in the Helm repositories.helm search repo nginx
helm installInstall a Helm chart.helm install my-release stable/nginx
helm upgradeUpgrade a release to a new chart or version.helm upgrade my-release stable/nginx
helm rollbackRoll back a release to a previous revision.helm rollback my-release 1
helm listList all Helm releases.helm list
helm uninstallUninstall a Helm release.helm uninstall my-release
helm show valuesDisplay the default values of a chart.helm show values stable/nginx
helm templateRender chart templates locally without installing.helm template my-release stable/nginx

Helm Chart Management

CommandDescriptionExample
helm listList all Helm releases.helm list
helm statusDisplay the status of a Helm release.helm status my-release
helm historyShow the history of a Helm release.helm history my-release
helm upgradeUpgrade a release to a new chart or version.helm upgrade my-release stable/nginx
helm rollbackRoll back a release to a previous revision.helm rollback my-release 1
helm uninstallUninstall a Helm release.helm uninstall my-release
helm testRun tests for a release.helm test my-release
helm get allFetch all information about a release.helm get all my-release
helm get valuesRetrieve the values of a release.helm get values my-release
helm get manifestFetch the manifest of a release.helm get manifest my-release
helm get hooksRetrieve the hooks of a release.helm get hooks my-release
helm get notesFetch the notes of a release.helm get notes my-release
helm diffCompare a release with a new chart or version.helm diff upgrade my-release stable/nginx

Helm Repo

CommandDescriptionExample
helm repo addAdd a new Helm chart repository.helm repo add stable https://charts.helm.sh/stable
helm repo updateUpdate information of available charts locally.helm repo update
helm repo listList all configured Helm chart repositories.helm repo list
helm repo removeRemove a Helm chart repository.helm repo remove stable
helm repo indexGenerate an index file for a chart repository.helm repo index ./charts
CommandDescriptionExample
helm search hubSearch for charts on the Helm Hub.helm search hub nginx
helm search repoSearch for charts in the Helm repositories.helm search repo mychart
helm search repo -lList all versions of a chart in the repository.helm search repo mychart -l
helm search repo --versionsShow all chart versions in the repository.helm search repo mychart --versions
helm search repo --regexpSearch charts using a regular expression.helm search repo '^mychart.*'

Helm Install

CommandDescriptionExample
helm installInstall a Helm chart.helm install my-release stable/nginx
helm install --dry-runSimulate an install without making changes.helm install my-release stable/nginx --dry-run
helm install --setOverride chart values during installation.helm install my-release stable/nginx --set key=value
helm install --valuesUse a custom values file for installation.helm install my-release stable/nginx --values custom-values.yaml
helm install --namespaceSpecify the namespace for the release.helm install my-release stable/nginx --namespace my-namespace
helm install --versionInstall a specific version of a chart.helm install my-release stable/nginx --version 1.2.3
This post is licensed under CC BY 4.0 by the author.