<p>I'am trying to create pod with volume persistent disk of 10gb but seems I cannot create disk under 200Gb.</p>
<p>I can see pv listed but pvClaim is on pending. I can see what the pc is Available so I cannot understand what's happen</p>
<p><strong>Please find info below:</strong></p>
<pre><code>Invalid value for field 'resource.sizeGb': '10'. Disk size cannot be smaller than 200 GB., invalid

    kubectl get pvc -n vault-ppd
NAME                 STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS               AGE
pv-vault-ppd-claim   Pending                                      balanced-persistent-disk   2m45s

     kubectl get pv -n vault-ppd
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM                               STORAGECLASS               REASON   AGE
pv-vault-ppd                               10Gi       RWO            Retain           Available   vault/pv-vault-ppd-claim  
</code></pre>
<p>My manifest <strong>vault-ppd.yaml</strong></p>
<pre><code>    kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: balanced-persistent-disk
provisioner: pd.csi.storage.gke.io
parameters:
  type: pd-standard
  replication-type: regional-pd
volumeBindingMode: WaitForFirstConsumer
allowedTopologies:
- matchLabelExpressions:
  - key: topology.gke.io/zone
    values:
    - europe-west1-b
    - europe-west1-c
    - europe-west1-d
---
apiVersion: v1
kind: Namespace
metadata:
  name: vault-ppd
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: vault-ppd
  namespace: vault-ppd
  labels:
    app.kubernetes.io/name: vault-ppd
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-vault-ppd
spec:
  storageClassName: &quot;balanced-persistent-disk&quot;
  capacity:
    storage: 10Gi
  accessModes:
    - ReadWriteOnce
  claimRef:
    namespace: vault
    name: pv-vault-ppd-claim
  gcePersistentDisk:
    pdName: gke-vault-volume
    fsType: ext4

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pv-vault-ppd-claim
  namespace: vault-ppd
spec:
  storageClassName: &quot;balanced-persistent-disk&quot;
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi
</code></pre>
<p>Thx for helps guys</p>

Rabah DevOps
<p>Your deployment has regional persistent disks of type <strong>pd-standard</strong> and  replication-type: <strong>regional-pd</strong>, this means that volumes create a regional persistent disk. As mentioned in <a href="https://cloud.google.com/compute/docs/disks/regional-persistent-disk#restrictions" rel="nofollow noreferrer">documentation</a> the minimum capacity per disk for regional persistent disks is 200 GB . We cannot create a regional-pd with lower GB requirement for a standard disk. So now the workaround is, you can either create a PVC with a larger size or use pd-ssd instead.</p>
<p><strong>Note:</strong> To use regional persistent disks of type <strong>pd-standard</strong>, set the <strong>PersistentVolumeClaim.storage</strong> attribute to <strong>200Gi</strong> or higher. If you need a smaller persistent disk, use <strong>pd-ssd</strong> instead of <strong>pd-standard</strong>.</p>
<p>Refer <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/regional-pd#regional_persistent_disks" rel="nofollow noreferrer">Regional Persistent disks</a> for information.</p>
