Your release takes ownership of a Namespace object. Someone uninstalls the release. What happens?
AdvancedScenarioReleases, Upgrades & Rollbacks
Answer
Situation read → If the chart templated the Namespace, uninstall deletes it, and with it everything inside, including other releases' resources and PVCs.
What I'd do →
- Never template the release's own namespace; use
--create-namespace(not tracked by the release) or create namespaces via a platform pipeline. - If a chart must create namespaces, annotate them
helm.sh/resource-policy: keep. - Audit existing charts:
helm get manifest <rel> | grep -B2 -A2 'kind: Namespace'.
Why → Namespace deletion cascades to everything inside.
Interview tip → Note that --create-namespace namespaces are not deleted by helm uninstall.
More on Releases, Upgrades & Rollbacks
A production upgrade starts failing health checks five minutes after the deploy. What do you do?BeginnerWhy would you insist on `--atomic --wait` in CI, and what is the trade-off?IntermediateYou need zero-downtime upgrades of the API with Helm. What must be true in the chart?IntermediateA pipeline was cancelled mid-upgrade and now every deploy fails with "another operation is in progress". What do you do?AdvancedA rollback is requested, but the failed release ran a migration that dropped a column. What do you do?AdvancedThe team scaled a Deployment manually to 10 replicas during a traffic spike. The next deploy scaled it back to 3. Explain and fix.Intermediate