Terraform & Helm: Helm
9 Terraform & Helm commands: Helm. Click a command to see what each part does.
Terraform & Helm: HelmIndex
Helm9
helm repo add <name> <url> && helm repo updateAdd a chart repo and refreshWhat each part does
repo add <name> <url>register a chart repositoryrepo updaterefresh the local index of all repos
helm show values <repo>/<chart> > values.yamlLook at a chart's default valuesWhat each part does
show valuesprint the chart's values.yaml> values.yamlsave it as a starting point
helm template <release> <chart> -f <values-file> | lessRender templates locally (no cluster)What each part does
templaterender manifests locally-f <values-file>your values (repeatable; later files win)| 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 commandWhat each part does
upgrade --installupgrade if the release exists, otherwise install (-i)-n <namespace>target namespace--create-namespacecreate it if missing (with --install)-f <values-file>values file--set <key>=<value>override one value on the command line (wins over -f)--waitwait until resources are ready--timeout 5mhow long to wait
helm upgrade --install <release> <chart> --rollback-on-failure --timeout 5mRoll back automatically if the upgrade failsWhat each part does
--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 rollbackCautionWhat each part does
historyrevisions with status and chart/app versionsrollback <release> <revision>return to that revision (omit it for the previous one)
helm list -A | grep <release>Find a release in any namespaceWhat each part does
list -Areleases in all namespaces| grep <release>keep the matching row
helm get values <release> -n <namespace> --allValues actually used by a releaseWhat each part does
get valuesuser-supplied values of the deployed release--allinclude chart defaults too
helm uninstall <release> -n <namespace>Remove a releaseDestructiveWhat each part does
uninstalldelete all resources of the release (PVCs may stay)
Nothing matches.
My DevOps Playbook by Angelo John Calleja