How do you manage Helm releases in CD (atomic upgrades, history, hooks)?
IntermediateProductionRelease Engineering and Progressive Delivery
Answer
Use helm upgrade --install --atomic --wait --timeout 5m so a failed release is rolled back automatically, set --history-max 10 to cap stored release secrets, lint and template-render in CI (helm lint, helm template | kubeconform), use pre-upgrade hooks for migrations carefully (a failing hook blocks the release), and use helm diff upgrade (plugin) in PRs to show what will change.
helm upgrade --install shop-api ./chart -n shop -f values-prod.yaml \
--set image.tag=$GIT_SHA --atomic --wait --timeout 5m --history-max 10
More on Release Engineering and Progressive Delivery
How do you do zero-downtime deployments on Kubernetes?IntermediateHow do you implement a canary release with Argo Rollouts and automated analysis?AdvancedHow do you roll back safely when a deploy includes a database migration?AdvancedHow do you design an automated rollback trigger?AdvancedHow do you handle hotfixes in a trunk-based flow?IntermediateHow do you version and release libraries versus services?Intermediate