<p>I have map windows folder into me linux machine with </p>

<pre><code>mount -t cifs //AUTOCHECK/OneStopShopWebAPI -o user=someuser,password=Aa1234 /xml_shared 
</code></pre>

<p>and the following command </p>

<blockquote>
  <p>df -hk</p>
</blockquote>

<p>give me </p>

<pre><code>//AUTOCHECK/OneStopShopWebAPI   83372028   58363852   25008176  71% /xml_shared
</code></pre>

<p>after that I create yaml file with </p>

<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc-nfs-jenkins-slave
spec:
  storageClassName: jenkins-slave-data
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 4Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-nfs-jenkins-slave
  labels:
    type: jenkins-slave-data2
spec:
  storageClassName: jenkins-slave-data
  capacity:
    storage: 4Gi
  accessModes:
    - ReadWriteMany
  nfs:
    server: 192.168.100.109
    path: "//AUTOCHECK/OneStopShopWebAPI/jenkins_slave_shared"
</code></pre>

<p>this seems to not work when I create new pod </p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: jenkins-slave
  labels:
    label: jenkins-slave
spec:
  containers:
  - name: node
    image: node
    command:
    - cat
    tty: true
    volumeMounts:
        - mountPath: /var/jenkins_slave_shared
          name: jenkins-slave-vol
  volumes:
    - name: jenkins-slave-vol
      persistentVolumeClaim:
        claimName: pvc-nfs-jenkins-slave
</code></pre>

<p>do i need to change the nfs ? what is wrong with me logic?</p>

shaharnakash
<p>The mounting of CIFS share under Linux machine is correct but you need to take different approach to mount CIFS volume under Kubernetes. Let me explain:</p>

<p>There are some differences between <a href="https://ipwithease.com/difference-between-cifs-and-nfs/" rel="nofollow noreferrer">NFS and CIFS</a>. </p>

<p>This site explained the whole process step by step: <a href="https://github.com/fstab/cifs" rel="nofollow noreferrer">Github CIFS Kubernetes</a>. </p>
