<p>I'm deploying a large Kube cluster where each node has 80 SSDs. Each disk is mounted as /data/diskN (disk0 - disk79) on each node.</p>

<p>Example PV:</p>

<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  name: vol0022
spec:
  accessModes:
  - ReadWriteOnce
  capacity:
    storage: 100Gi
  local:
    path: /data/disk22
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: "storage"
          operator: In
          values:
          - "true"
  persistentVolumeReclaimPolicy: Retain
  volumeMode: Filesystem
</code></pre>

<p>Do I merely create enough PV's to cover (num_nodes * num_disk_per_node)?</p>

<p>ie:</p>

<p>If I have 10 nodes, I'll have 10 PV's where the path is "/data/disk0", another 10 where the path is "/data/disk1", and so on.</p>

<p>Thx</p>

<p>Yes. If you try to create Persistent Volume for each of them.</p>

<p>A better way is to use a "StorageClass" (<a href="https://kubernetes.io/docs/concepts/storage/storage-classes/" rel="nofollow noreferrer">more information</a>) like "Glusterfs" which will create a cluster for all the disk. Then you can directly create a PersistentVolumeClaim to claim some space without creating a PersistentVolume.</p>
