<p>I'm running a MySQL deployment on Kubernetes however seems like my allocated space was not enough, initially I added a persistent volume of <code>50GB</code> and now I'd like to expand that to <code>100GB</code>.</p>

<p>I already saw the a persistent volume claim is immutable after creation, but can I somehow just resize the persistent volume and then recreate my claim?</p>

<p>Yes, as of 1.11, <a href="https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/" rel="noreferrer">persistent volumes can be resized</a> on certain cloud providers. To increase volume size:</p>

<ol>
<li>Edit the PVC (<code>kubectl edit pvc $your_pvc</code>) to specify the new size. The key to edit is <code>spec.resources.requests.storage</code>:</li>
</ol>

<p><a href="https://i.stack.imgur.com/neoTZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/neoTZ.png" alt="enter image description here"></a></p>

<ol start="2">
<li>Terminate the pod using the volume.</li>
</ol>

<p>Once the pod using the volume is terminated, the filesystem is expanded and the size of the <code>PV</code> is increased. See the above link for details.</p>
