helm install: Command Reference for CI/CD
Install a chart as a named release, gated and atomic.
helm install renders a chart with your values and creates a release. The --wait and --atomic flags turn it into a self-gating, self-rolling-back deploy step. This reference covers the value and gating flags and a CI example.
Common flags and usage
- install <release> <chart>: create a release from a chart
- -f values.yaml / --set k=v: supply values
- --wait: block until resources are Ready
- --atomic: roll back automatically if the install fails
- --timeout 5m: bound the wait
- --namespace <ns> --create-namespace: target and create the namespace
Example
shell
helm install web ./charts/web \
--namespace prod --create-namespace \
--set image.tag=${IMAGE_TAG} \
--wait --atomic --timeout 5mIn CI
--wait makes install block until resources are Ready, and --atomic uninstalls a failed install so a half-deployed release is never left behind. Always pair them with --timeout. For an existing release, helm upgrade --install is the idempotent form for re-runnable pipelines.
Key takeaways
- --wait blocks on readiness; --atomic rolls back a failed install.
- Always set --timeout to bound the wait.
- For re-runnable jobs prefer upgrade --install over a bare install.
Related guides
Helm Cheat Sheet: Charts, Releases & UpgradesA Helm cheat sheet - install, upgrade, rollback, template, repo, and dependency commands for managing Kuberne…
helm upgrade: Command Reference for CI/CDReference for helm upgrade: update a release or install it if absent with --install, atomic rollback, --wait…
helm uninstall: Command Reference for CI/CDReference for helm uninstall: remove a release and its resources, --keep-history and --wait flags, and a CI p…
helm status: Command Reference for CI/CDReference for helm status: inspect a release state, revision, and resources, machine-readable output for CI a…