helm install: Install Charts in CI
Install a Helm chart into a cluster as a named release.
helm install renders a chart with your values and creates a release in the cluster. In CI it provisions a new application or dependency. For idempotent pipelines, helm upgrade --install is usually preferred, but install is the right call for a guaranteed first deploy.
Common flags
RELEASE CHART- release name and chart reference (positional)-n NAMESPACE --create-namespace- target/create namespace-f values.yaml/--set key=value- supply values--wait --timeout=DURATION- block until resources are ready
Example in CI
Install a chart and wait for it to be ready.
shell
helm install api ./charts/api \
-n prod --create-namespace \
-f values.prod.yaml \
--set image.tag=${GITHUB_SHA} \
--wait --timeout 300sCommon errors in CI
- cannot re-use a name that is still in use - release already exists (use upgrade --install)
- INSTALLATION FAILED: ... timed out waiting for the condition - --wait hit unready resources
- Error: Kubernetes cluster unreachable - kubeconfig/context not set
Key takeaways
- Installs a chart as a new named release.
- Use --wait to make install pass/fail on resource readiness.
- For re-runnable pipelines prefer helm upgrade --install.
Related guides
helm upgrade: Deploy Chart Changes in CIUpgrade a Helm release in CI with --install and --atomic: key flags, a deploy example, and the upgrade errors…
helm repo add: Register Chart Repos in CIAdd a Helm chart repository in CI: auth and force flags, an example with repo update, and the repo errors you…
helm rollback: Revert Releases in CIRoll a Helm release back to a previous revision in CI: revision and wait flags, an example, and the rollback…