Skip to content

Terraform & Helm: Helm: charts, repos & debugging

16 Terraform & Helm commands: Helm: charts, repos & debugging. Click a command to see what each part does.

Index
16 items
Click a command to see what each part does.

Helm: charts, repos & debugging16

  • helm search repo <keyword> --versions; helm search hub <keyword>Search charts in added repos / Artifact Hub

    What each part does

    1. search repocharts in your added repos
    2. --versionsevery chart version, not only the latest
    3. search hubsearch Artifact Hub
  • helm pull <repo>/<chart> --version <version> --untarDownload and unpack a chart

    What each part does

    1. pulldownload the chart .tgz
    2. --versionspecific chart version
    3. --untarunpack to a folder to read templates
  • helm show chart <repo>/<chart>; helm show readme <repo>/<chart>Show a chart's metadata and README

    What each part does

    1. show chartChart.yaml: version, appVersion, dependencies
    2. show readmedocumentation
  • helm upgrade --install <release> oci://<registry>/<path>/<chart> --version <version> -n <namespace>Install a chart from an OCI registry

    What each part does

    1. oci://...charts stored in a container registry (no helm repo add)
    2. --versionchart version
  • helm status <release> -n <namespace>Status and notes of a release

    What each part does

    1. statusdeployed / failed / pending-upgrade, revision, and the chart's NOTES
  • helm get manifest <release> -n <namespace>What did Helm actually deploy?

    What each part does

    1. get manifestthe rendered YAML of the current revision (--revision <n> for older)
  • helm list -A --pending --failedReleases stuck or failed

    What each part does

    1. -Aall namespaces
    2. --pending --failedonly releases in those states (pending-upgrade blocks new upgrades)
  • helm upgrade <release> <chart> -f <values-file> --dry-run=server --debug -n <namespace>Preview an upgrade without applying

    What each part does

    1. --dry-run=serverrender and validate against the cluster, change nothing
    2. --debugprint the rendered manifests
  • helm diff upgrade <release> <chart> -f <values-file> -n <namespace>Diff an upgrade (helm-diff plugin)

    What each part does

    1. helm diff upgradecolored diff between the live release and what the upgrade would deploy (helm plugin install https://github.com/databus23/helm-diff)
  • helm upgrade <release> <chart> --reuse-values --set <key>=<value>Keep current values on upgradeCaution

    What each part does

    1. --reuse-valuesstart from the last release's values
    2. --setchange only this one

    Tip Can hide new chart defaults; --reset-then-reuse-values is safer on Helm 3.14+.

  • helm create <chart>Create a new chart

    What each part does

    1. helm createscaffold a chart: Chart.yaml, values.yaml, templates
  • helm lint <chart-dir> -f <values-file>Lint a chart

    What each part does

    1. lintcheck the chart and rendered templates for errors and best practices
  • helm dependency update <chart-dir>Fetch chart dependencies

    What each part does

    1. dependency updatedownload the subcharts listed in Chart.yaml into charts/ and update Chart.lock
  • helm package <chart-dir> && helm push <chart>-<version>.tgz oci://<registry>/<path>Package and push a chart to an OCI registry

    What each part does

    1. packagebuild <chart>-<version>.tgz
    2. push ... oci://upload to the registry (helm registry login first)
  • helm test <release> -n <namespace>Run a release's tests

    What each part does

    1. helm testrun the chart's test hook pods and report pass/fail
  • helm plugin listInstalled Helm plugins

    What each part does

    1. plugin liste.g. diff, secrets, unittest

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…