What is the difference between helm install and helm upgrade --install, and when should you prefer the latter in a CI/CD pipeline?
#Reveal answer guidance
helm install fails if a release already exists; helm upgrade --install is idempotent — it installs on first run and upgrades on subsequent runs. In CI/CD pipelines you always prefer helm upgrade --install because the pipeline doesn't know whether this is the first deploy or a re-deploy. Pair it with --atomic (rolls back automatically on failure) and --timeout 5m to get safe, self-healing deploys. Example: helm upgrade --install my-app ./chart -f values-prod.yaml --atomic --timeout 5m --namespace prod --create-namespace.