Helm: How to helm uninstall without delete pvc

Created on 21 Aug 2019  ยท  1Comment  ยท  Source: helm/helm

Output of helm version: v3.0.0-alpha.2

Output of kubectl version:v1.14.0

Hey guys. I have these files in my chart. Can I use helm uninstall without delete pvc?

โ”œโ”€โ”€ Chart.yaml
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ templates
โ”‚ โ”œโ”€โ”€ NOTES.txt
โ”‚ โ”œโ”€โ”€ _helpers.tpl
โ”‚ โ”œโ”€โ”€ configmap.yaml
โ”‚ โ”œโ”€โ”€ deployment.yaml
โ”‚ โ”œโ”€โ”€ ingress.yaml
โ”‚ โ”œโ”€โ”€ pvc.yaml
โ”‚ โ”œโ”€โ”€ service.yaml
โ”‚ โ””โ”€โ”€ serviceaccount.yaml
โ””โ”€โ”€ values.yaml

Or is there any methods to rebond pv which is released status when I have deleted pvc with cammand helm uninstall?

questiosupport

Most helpful comment

if you use this annotation on the PVC, it will skip deleting the resource on uninstall. I think it has been retained from v2

helm.sh/resource-policy: "keep"

Docs: https://helm.sh/docs/charts_tips_and_tricks/#tell-tiller-not-to-delete-a-resource
Source code In dev-v3

>All comments

if you use this annotation on the PVC, it will skip deleting the resource on uninstall. I think it has been retained from v2

helm.sh/resource-policy: "keep"

Docs: https://helm.sh/docs/charts_tips_and_tricks/#tell-tiller-not-to-delete-a-resource
Source code In dev-v3

Was this page helpful?
0 / 5 - 0 ratings