I have a CIFS share and i have mounted it to the host using mount service units.
But when i use the share for any pod, they will not run properly and errors out showing some error.
I can confirm that the pod runs perfectly fine if i use normal storage.
Please help me successfully use the cifs shares with the pods persistent volumes.
here is the unit code.
Description = SERVER-DATA
What = //10.1.1.1/serverdata
Where = /mnt/SERVERDATA
Type = cifs
Options = username=myuser,password=mypassword,noperm,exec,dev,suid
WantedBy = multi-user.target
Kubernetes version: 1.19.3
Cloud being used: bare metal
Installation method: kubeadm
Host OS: ubuntu 20 server
CNI and version:
CRI and version:
One more thing one of my pods shows that the volume has been mounted with noexec and nodev values which seems to be the reason.