Skip to content

IaC & CI/CD: Helm

Helm commands from the IaC & CI/CD folder.

Index
3 items

Helm: Upgrade or install a release

Safe

Idempotent deploy. --atomic rolls back automatically if the upgrade fails.

helm upgrade --install <release> <chart> -n <namespace> -f <values-file> --atomic --wait
What each part does
  1. helm upgrade --install <release>upgrade the release, or install it if it doesn't exist
  2. <chart>chart reference: repo/chart, a path, or an OCI URL
  3. -n <namespace>target namespace (add --create-namespace if it may not exist)
  4. -f <values-file>values file overriding the chart defaults
  5. --atomicroll back automatically if the upgrade fails
  6. --waitwait for pods, services etc. to be ready before reporting success

Also known as: helm upgrade · helm install

Helm: Show release history

Safe

Revisions, status and chart/app versions of a release.

helm history <release> -n <namespace>
What each part does
  1. helm history <release>every revision: number, date, status, chart and app version, description
  2. -n <namespace>namespace of the release

Also known as: helm history · another operation (install/upgrade/rollback) is in progress

Helm: Roll back a release

Caution

Return the release to an earlier revision (see helm history).

helm rollback <release> <revision> -n <namespace> --wait
What each part does
  1. helm rollback <release>redeploy a previous revision of a release (as a new revision)
  2. <revision>revision number from helm history; leave it out for the previous one
  3. -n <namespace>namespace of the release
  4. --waitwait until the resources are ready

Also known as: helm rollback

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