Skip to content

Terraform & Helm: Helm

9 Terraform & Helm commands: Helm. Click a command to see what each part does.

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

Helm9

  • helm repo add <name> <url> && helm repo updateAdd a chart repo and refresh

    What each part does

    1. repo add <name> <url>register a chart repository
    2. repo updaterefresh the local index of all repos
  • helm show values <repo>/<chart> > values.yamlLook at a chart's default values

    What each part does

    1. show valuesprint the chart's values.yaml
    2. > values.yamlsave it as a starting point
  • helm template <release> <chart> -f <values-file> | lessRender templates locally (no cluster)

    What each part does

    1. templaterender manifests locally
    2. -f <values-file>your values (repeatable; later files win)
    3. | lesspage through the output
  • helm upgrade --install <release> <chart> -n <namespace> --create-namespace -f <values-file> --set <key>=<value> --wait --timeout 5mInstall or upgrade in one command

    What each part does

    1. upgrade --installupgrade if the release exists, otherwise install (-i)
    2. -n <namespace>target namespace
    3. --create-namespacecreate it if missing (with --install)
    4. -f <values-file>values file
    5. --set <key>=<value>override one value on the command line (wins over -f)
    6. --waitwait until resources are ready
    7. --timeout 5mhow long to wait
  • helm upgrade --install <release> <chart> --rollback-on-failure --timeout 5mRoll back automatically if the upgrade fails

    What each part does

    1. --rollback-on-failureHelm 4: on failure, roll back to the last good release (implies --wait)

    Tip Helm 3 calls this flag --atomic.

  • helm history <release> -n <namespace>; helm rollback <release> <revision> -n <namespace>Release history and rollbackCaution

    What each part does

    1. historyrevisions with status and chart/app versions
    2. rollback <release> <revision>return to that revision (omit it for the previous one)
  • helm list -A | grep <release>Find a release in any namespace

    What each part does

    1. list -Areleases in all namespaces
    2. | grep <release>keep the matching row
  • helm get values <release> -n <namespace> --allValues actually used by a release

    What each part does

    1. get valuesuser-supplied values of the deployed release
    2. --allinclude chart defaults too
  • helm uninstall <release> -n <namespace>Remove a releaseDestructive

    What each part does

    1. uninstalldelete all resources of the release (PVCs may stay)

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/…