<p>I have the following <code>pv.yaml</code> Kubernetes/Kustomization file:</p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  name: myapp-common-pv
  namespace: myapp
  labels:
    app.kubernetes.io/name: myapp-common-pv
    app.kubernetes.io/component: common-pv
    app.kubernetes.io/part-of: myapp
spec:
  capacity:
    storage: 30Gi
  accessModes:
  - ReadWriteMany
  nfs:
    path: /myapp_nfs_share
    server: &lt;omitted for security purposes&gt;
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: myapp-common-pvc
spec:
  accessModes:
  - ReadWriteMany
  storageClassName: &quot;&quot;
  volumeName: myapp-common-pv
  resources:
    requests:
      storage: 30gi
</code></pre>
<p>When I run this I get:</p>
<pre><code>persistentvolume/myapp-common-pv unchanged
Error from server (BadRequest): error when creating &quot;/Users/myuser/workspace/myapp/k8s/pv&quot;: PersistentVolumeClaim in version &quot;v1&quot; cannot be handled as a PersistentVolumeClaim: v1.PersistentVolumeClaim.Spec: v1.PersistentVolumeClaimSpec.StorageClassName: Resources: v1.ResourceRequirements.Requests: unmarshalerDecoder: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$', error found in #10 byte of ...|ge&quot;:&quot;30gi&quot;}},&quot;storag|..., bigger context ...|teMany&quot;],&quot;resources&quot;:{&quot;requests&quot;:{&quot;storage&quot;:&quot;30gi&quot;}},&quot;storageClassName&quot;:&quot;&quot;,&quot;volumeName&quot;:&quot;myapp-common|...
</code></pre>
<p>Above, <code>&lt;omitted for security purposes&gt;</code> <em>is</em> a valid IP address, I just removed it for...security purposes.</p>
<p>I'm setting <code>storageClassName: &quot;&quot;</code> due to <a href="https://cloud.google.com/filestore/docs/accessing-fileshares" rel="nofollow noreferrer">this article explaining why its necessary</a>.</p>
<p><strong>Can anyone spot what's wrong with my <code>pv.yaml</code> file?</strong> And what I need to do (<em>specifically!</em>) to fix it?</p>

simplezarg
<blockquote>
<p>quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]<em>[-+]?[0-9]</em>)$', error found in #10 byte of ...|ge&quot;:&quot;30gi&quot;}}</p>
</blockquote>
<p>Change</p>
<pre><code>storage: 30gi
</code></pre>
<p>to</p>
<pre><code>storage: 30Gi
</code></pre>
<p>The <code>Gi</code> part must follow the <a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#setting-requests-and-limits-for-local-ephemeral-storage" rel="noreferrer">predefined units</a>.</p>
