<p>I am a newbie here , but I have a use case where I need to mount same path to two different PV's , When ever I try to give the same path my pod doesn't come up check mount paths below</p>
<pre><code>  - name : xxx
    mountPath : &quot;/home/{username}&quot;
    readOnly : false
static:
  pvcName:
  subPath: '{username}'
capacity: 10Gi
homeMountPath: '/home/{username}'
dynamic:
  storageClass: nfs-client
  pvcNameTemplate: claim-{username}{servername}
  volumeNameTemplate: volume-{username}{servername}
  storageAccessModes: [ReadWriteOnce]
</code></pre>
<p>But after changing the mount path pod comes up without any issue example</p>
<pre><code>mountPath : &quot;/home/test/{username}&quot;
</code></pre>
<p>Is there something I am missing</p>

Prashant Raghav
<p>If you want to mount the Single POD with multiple PVC it wont possible unless you use the ReadWiteMany.</p>
<p>But if you want to mount multiple path to POD it's possible using single PVC or multiple PVC depends on use case.</p>
<p>Single PVC single POD</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: my-test-pod
spec:
    containers:
    - name: mysql
      image: mysql
      env:
      - name: MYSQL_HOST
        value: &quot;IP&quot;
      volumeMounts:
      - mountPath: /var/lib/mysql
        name: data
        subPath: path1
    - name: nginx
      image: nginx
      volumeMounts:
      - mountPath: /var/www/html
        name: data
        subPath: path2
    volumes:
    - name: data
      persistentVolumeClaim:
        claimName: my-site-data
</code></pre>
<p>Multiple PVC and volume path to single POD</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: test-pod
spec:
  volumes:
    # List of volumes
    - name: volume1
      &lt; volume details, see below &gt;
    - name: volume2
      &lt; volume details, see below &gt;

  containers:
    - name: mycontainer
      volumeMounts:
        # Path
        # will mount 'volume1' into /var/www/html
        - name: volume1
          mountPath: /var/www/html
        # will mount 'volume2' into /var/log
        - name: volume2
          mountPath: /var/log/
</code></pre>
<p>Reference : <a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/getting_started_with_kubernetes/get_started_provisioning_storage_in_kubernetes#example" rel="nofollow noreferrer">https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/getting_started_with_kubernetes/get_started_provisioning_storage_in_kubernetes#example</a></p>
