How to keep resources on the cluster when uninstalling a release?

5/26/2020

Is there's a way to NOT remove certain resources from the cluster when uninstalling releases, and to re-use them (without conflict) when re-installing?

I was thinking of resources such as secrets and persistent volumes

-- znat
kubernetes-helm

1 Answer

5/27/2020

You can Tell Helm Not To Uninstall a Resource by adding the following annotation:

kind: Secret
metadata:
  annotations:
    "helm.sh/resource-policy": keep
-- edbighead
Source: StackOverflow