Why is `helm upgrade --install --atomic` preferred in automation?
⚡
Quick Answer
It's idempotent (install-or-upgrade) and rolls back automatically if the upgrade fails, avoiding half-applied releases.
Detailed Answer
plain helm install fails on re-run, so CI should use upgrade --install. --wait blocks until resources are Ready and --atomic reverts to the previous revision on failure, so you never leave a release stuck between versions.
Code Example
helm upgrade --install app ./chart --atomic --wait
💡
Interview Tip
Mention --wait and --atomic together.
helmupgradeatomic