Yash Verma / Cloud runbook

Helm commands

14 commands from the cloud runbook. Fill in a placeholder once and every command uses it.

List all releases across namespaces

Lists all Helm deployments in the cluster.

helm ls --all-namespaces

helm, deployments

Rollback a release

Rolls back a Helm deployment to a specific prior revision.

helm rollback <release-name> <revision-number>

helm, rollback, revert

Get deployed values

Fetches the values.yaml that was actually applied to a deployed release.

helm get values <release-name>

helm, config, values

Upgrade or install release

Installs a helm chart, or upgrades it if it already exists.

helm upgrade --install <release-name> <chart-path>

helm, deploy, upgrade

Render Helm templates locally

Renders the chart templates locally without applying them to the cluster.

helm template <release-name> <chart-path>

helm, template, dry-run

Add a Helm chart repository

Adds a chart repository to Helm's local repo list.

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts && helm repo update

helm, repo, add

Show chart default values

Prints the default values.yaml of a chart before installing.

helm show values <chart-name>

helm, values, chart

View release history

Shows the revision history and status of a Helm release.

helm history <release-name>

helm, history, revisions

Uninstall a release

Removes all resources associated with a Helm release.

Caution. Deletes every resource in the release. Add --keep-history to keep the release record for a later rollback.

helm uninstall <release-name> --namespace <namespace>

helm, delete, cleanup

Lint a Helm chart

Validates a chart for possible issues before deploying.

helm lint ./my-chart

helm, lint, validate

Show the manifests of an installed release

Prints the rendered Kubernetes manifests Helm applied for a release.

helm get manifest <release-name> -n <namespace>

manifest, debug

Upgrade and roll back on failure

Upgrades a release, waits for it to become ready and rolls back automatically if it doesn't.

helm upgrade --install <release-name> <chart-path> -n <namespace> --atomic --wait --timeout 5m

Helm 4 renamed --atomic to --rollback-on-failure.

upgrade, rollback, safe

Download a chart to read it

Pulls a chart version and unpacks it locally so you can read its templates and values.

helm pull <helm-repo>/<chart> --version <version> --untar

pull, chart

Preview an upgrade as a diff

Shows what an upgrade would change in the cluster before you run it.

helm diff upgrade <release-name> <chart-path> -n <namespace>

Needs the helm-diff plugin: helm plugin install https://github.com/databus23/helm-diff

diff, upgrade, plugin