<p>I have a pvc on my cluster.</p>
<p>I can expand it on my provider (digital ocean)</p>
<p>but then on the cluster do I need to somehow let it know that it expanded?</p>
<p>here is my file that I deployed to enable the creation of the pvc</p>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: test-pvc
  namespace: test
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 4Gi
  storageClassName: do-block-storage
</code></pre>

Henry
<p>Resizing volumes other than through the PVC object (e.g., the DigitalOcean cloud control panel) is not recommended as this can potentially cause conflicts. Additionally, <strong>size updates will not be reflected in the PVC object status section immediately, and the section will eventually show the actual volume capacity</strong></p>
<p>The recommendation is to update the capacity through the PVC object using <code>kubectl edit</code> and the CSI Driver will update the volume by calling digital ocean API. From the <a href="https://github.com/digitalocean/csi-digitalocean#volume-expansion" rel="nofollow noreferrer">docs</a></p>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: csi-pvc
  namespace: default
spec:
  [...]
  resources:
    requests:
      # The field below can be increased.
      storage: 10Gi
      [...]
</code></pre>
<p>After successful expansion, the status section of the PVC object will reflect the actual volume capacity.</p>
