<p>I have a <code>pv</code> like below</p>

<pre><code>apiVersion: v1
kind: PersistentVolume
metadata: 
  name: azurefile

spec:
  capacity:
    storage: 5Gi
  accessModes: 
    - ReadWriteMany
  storageClassName: azurefile
  azureFile:
    secretName: azure-secret
    shareName: cloudshare
    readOnly: false
</code></pre>

<p>and a <code>pvc</code> like below</p>

<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:  
  name: azurefile
spec:
  accessModes:
    - ReadWriteMany
  storageClassName: azurefile
  resources:
    requests:
      storage: 2Gi  
</code></pre>

<p>on deployments i have the following </p>

<pre><code>      volumes:      
        - name: my-storage
          persistentVolumeClaim:
              claimName: azurefile
      volumeMounts:
          - name:  my-storage
            mountPath:  "/home/myapp/newapp/"
</code></pre>

<p>My understanding is that under the path <code>/home/myapp/newapp/</code> in the containers ,the <code>azure</code> fileshare <code>cloudshare</code>'s content will be accessible. So, whatever i have in <code>cloudshare</code> will be visible here. Does <code>pvc</code> or <code>pv</code> creates folders under the <code>cloudshare</code>? , the reason i ask is ,
I have a <code>WORKDIR</code> in my <code>dockerimage</code> which is actually in the same <code>mountpath</code> like below</p>

<p><code>WORKDIR /home/myapp/newapp/reta-app/</code> . </p>

<p>For some reason <code>reta-app</code> folder is getting created inside the <code>cloudshare</code>. Is this a normal behaviour or i am doing something wrong. </p>

doc_noob
<blockquote>
  <p>Does <code>pvc</code> or <code>pv</code> create folders under the <code>cloudshare</code>?</p>
</blockquote>

<p>No.  A Kubernetes PersistentVolume is just some storage somewhere, and a PersistentVolumeClaim is a way of referencing a PV (that may not immediately exist).  Kubernetes does absolutely no management of any of the content in a persistent volume; it will not create directories on startup, copy content from the image into a volume, or anything else.</p>
