<p>I have the following <strong>PersistentVolumeClaim</strong>:</p>

<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: nginx-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 256Mi
  storageClassName: fask
</code></pre>

<p>and <strong>Deployment</strong>:</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 2
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80
        volumeMounts:
        - name: data
          mountPath: "/var/www/html"
      volumes:
      - name: data
        persistentVolumeClaim:
          claimName: nginx-pvc
</code></pre>

<p>If I run with a <em>single</em> replica Deployment my PV gets dynamically created by the vsphere <strong>StorageClass</strong></p>

<p>However, if I have more than <em>2</em> replicas it will fail to create the second PV:</p>

<pre><code>AttachVolume.Attach failed for volume "pvc-8facf319-6b1a-11e8-935b-00505680b1b8" : Failed to add disk 'scsi0:1'.
Unable to mount volumes for pod "nginx-deployment-7886f48dcd-lzms8_default(b0e38764-6b1a-11e8-935b-00505680b1b8)": timeout expired waiting for volumes to attach or mount for pod "default"/"nginx-deployment-7886f48dcd-lzms8". list of unmounted volumes=[data]. list of unattached volumes=[data default-token-5q7kr]
</code></pre>

DarVar
<blockquote>
  <p>However, if I have more than 2 replicas it will fail to create the second PV</p>
</blockquote>

<p>You should then probably use <code>StatefulSet</code> and <code>volumeClaimTemplates</code> within it instead of <code>Deployment</code> and <code>PersistentVolumeClaim</code>.</p>

<p>In your case each deployment is having same <code>PersistentVolumeClaim</code> (that is ReadWriteOnly and can't be mounted on second request), while with  <code>volumeClaimTemplates</code> you get different one provisioned per each replica.</p>
