<p>I have a persistent volume.</p>
<p>I want to force Kubernetes to recreate it, as the contents is corrupted.  Alternatively, if there's a way to fix that, it would be a solution.</p>
<p>I have checked that the persistent volume is working as expected using:</p>
<pre><code>kubectl describe pv -n 
</code></pre>
<p>And my pod was previously using it.  However, my pod is now failing due to a corrupted file within the persistent volume.</p>
<p>I would like to recreate the persistent volume.</p>
<p>If I delete the persistent volume, will Kubernetes create a new one, or will I have to manually create a new one to attach?</p>

fuzzi
<p>If you delete a persistent volume then kubernetes will not create a new one for you, you have to manually create a new one. Basically it is the simple answer of your question.</p>
<p>But there are basically three options when you are done with your pv, you can delete the PVC object then depending on the PV reclaim policy you will have three options: <code>Delete</code>, <code>Retain</code>, <code>Recycle</code>. Now it depends on what policy is set in your pv reclaim policy.</p>
<p>As kubernetes official docs stated:</p>
<blockquote>
<p>When a user is done with their volume, they can delete the PVC objects from the API that allows reclamation of the resource. The reclaim policy for a PersistentVolume tells the cluster what to do with the volume after it has been released of its claim. Currently, volumes can either be Retained, Recycled, or Deleted.</p>
</blockquote>
<p>for more you can look at the <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow noreferrer">persistent volume</a> docs of kubernetes.</p>
