<p>When uninstalling a helm chart PVs are gone to status Retain-Released and PVCs are deleted.
Also, when i try again to install helm chart it creates new dummy PVs and bounds them with PVCs.</p>
<p>I use this command to manual change Released status of PV to Available again:
kubectl patch pv &lt;pv_name&gt; --type json -p '[{&quot;op&quot;: &quot;remove&quot;, &quot;path&quot;: &quot;/spec/claimRef/uid&quot;}]'</p>
<p>Can this be done by changing yaml file and without this using the above command?</p>
<p>Or is there a way to prevent deleting specific PVCs when uninstalling a helm chart in order to stay in status bound?</p>

Gioni
<p>the behaviour of deleting PVs (or not) when releasing PVCs depends on the configuration of the <code>reclaimPolicy</code> of your storage class.</p>
<p>if your storage class is configured to <code>reclaimPolicy: Retain</code>, the PVs won't be deleted if the PVCs are.</p>
<p>if your storage class is configured with <code>reclaimPolicy: Delete</code>, the PVs will be deleted if the PVCs are.</p>
<p>see <a href="https://kubernetes.io/docs/concepts/storage/storage-classes/#reclaim-policy" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/storage/storage-classes/#reclaim-policy</a> for more information. :)</p>
