Rapid fire: commands for safe deploys and rollbacks.
IntermediateConceptBest Practices & Rapid-Fire Commands
Answer
helm diff upgrade shop ./shop -n shop -f values-prod.yaml
helm upgrade --install shop ./shop -n shop --create-namespace -f values-prod.yaml \
--atomic --wait --timeout 10m --cleanup-on-fail --history-max 15 --description "sha $GIT_SHA"
helm test shop -n shop --logs
helm rollback shop 0 -n shop --wait # 0 (or omitted) = previous revision
helm uninstall shop -n shop --keep-history
More on Best Practices & Rapid-Fire Commands
What are your top best practices for chart authoring?IntermediateWhat are your top best practices for releasing with Helm in production?IntermediateHow do you set resource requests and limits in a chart without forcing them on users?IntermediateHow do you keep an HPA and Helm from fighting over `replicas`?AdvancedHow would you migrate a release whose stored manifest uses an API removed in the new Kubernetes version?AdvancedRapid fire: commands to inspect a release.Beginner