You want to uninstall a Helm release but keep the PVCs. How?
BeginnerScenarioHelm, operators and GitOps
Answer
Situation read → Data must survive an uninstall.
What I'd do →
- Check how PVCs were created (chart template versus StatefulSet volumeClaimTemplates)
- StatefulSet PVCs survive
helm uninstall - Annotate chart-managed PVCs with
helm.sh/resource-policy: keep - Verify with
kubectl get pvcafter uninstall - Back up first
Why → The keep policy tells Helm not to delete a resource on uninstall.
Interview tip → Always back up before uninstall.
More on Helm, operators and GitOps
A `helm upgrade` failed halfway. How do you see state and recover?BeginnerHelm says `cannot re-use a name that is still in use` or `another operation is in progress`. What now?IntermediateHow do you review what a Helm upgrade will change before running it?IntermediateWhere do you keep chart values for multiple environments?BeginnerWhat does `helm template` do and how is it different from `helm install`?BeginnerA Helm chart upgrade changed an immutable field and failed. How do you proceed?Advanced