Mounting CIFS/SMB share in Linux container

Hi everyone!

I need some advice here… We want to run a pod as a kubernetes job that fetches a file (wget) externally and copies that file on a local SMB/CIFS share.
I noticed ms has created something similar: an smb driver via flexvolume

However, you need to set some specific variables in the kubelet:

Is that doable or are there better methods?

That looks like an interesting subject to look into, however for the specific pretty basic case that you’ve described, I’d go with the ‘smbclient’ utility which is a totally userland tool that won’t require any k8s mods nor privilege escalation.

https://www.samba.org/samba/docs/current/man-html/smbclient.1.html