<p>I am using multiple apps on kubernetes and all are configured with <code>pd-ssd</code> volume. Some deployments are running on big volume with less data. So i wanted to reduce that volume of the pods. I have worked with increase volumen and it was worked. But i can't reduce the space of the volume.</p>

<p>Steps i did. Current size is 100Gi, I want to resize it to 30Gi.</p>

<ol>
<li>Scaling down the application and pod.</li>
<li>edit pvc to reduce the size of volume.</li>
</ol>

<pre><code>k edit pvc my-pvc
</code></pre>

<p>I got the following error when I save the changes.</p>

<blockquote>
  <p>error: persistentvolumeclaims "my-pvc" is invalid
  A copy of your changes has been stored to "/tmp/kubectl-edit-4ivk1.yaml"
  error: Edit cancelled, no valid changes were saved.</p>
</blockquote>

<p>But i can not able to save the changes for reduce volume size.</p>

Shiva
<p>Shrinking persistent volumes is <strong>not</strong> supported in kubernetes, you can only increase it.
<a href="https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/" rel="noreferrer">resizing-persistent-volumes-using-kubernetes</a></p>
