Helm in Depth — From Charts to a Platform Library›How Helm works · Cheat sheet & self-check

How Helm works · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

01 · Releases, upgrades and rollbacks

Release lifecycle

helm upgrade --install orders ./orders -n shop --create-namespaceInstall or upgrade in one idempotent command
helm upgrade orders ./orders -n shop --atomic --wait --timeout 5mWait for readiness; roll back automatically on failure
helm history orders -n shopRevisions with status and description
helm rollback orders 3 -n shopRe-apply revision 3 as a new revision
helm get values orders -n shop --allEvery value used by the current revision
helm get manifest orders -n shopExactly what Helm applied
kubectl get secret -n shop -l owner=helm,name=ordersWhere Helm stores each revision

02 · Templates and helpers

Template building blocks

{{ define "app.labels" }}…{{ end }}Named template (put in _helpers.tpl)
{{ include "app.labels" . | nindent 4 }}Use it, piped and indented
{{ required "image.tag is required" .Values.image.tag }}Fail rendering with a clear message
{{ .Values.replicas | default 2 }}Fallback value
{{ toYaml .Values.resources | nindent 12 }}Insert a whole YAML block
{{- … -}}Trim whitespace before / after
{{ tpl .Values.hostTemplate . }}Render a value that itself contains template syntax
helm template . --debugRender locally and show errors with context

03 · Values at scale

Values in practice

helm upgrade --install orders ./orders -f values/base.yaml -f values/prod.yaml -f values/prod-eu.yamlLayered files; later files win
helm show values ./ordersChart defaults
helm template ./orders -f values/prod.yaml --set tier=goldSchema rejects invalid input before rendering
helm diff upgrade orders ./orders -f values/prod.yaml -n shopPreview changes against the live release (helm-diff plugin)