Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: How to properly mount fileshare with local(docker-desktop) kubernetes #9

Open
AvinashRamireddy31 opened this issue Feb 1, 2022 · 3 comments

Comments

@AvinashRamireddy31
Copy link

AvinashRamireddy31 commented Feb 1, 2022

Hi,

My projects involves azure fileshare integration.
It is working fine in AKS cluster. I would like to replicate the same in local environment for developers using docker-desktop with kubernetes enabled but fileshare is currently is not working because it is provisioned from azure.

I tried https://github.com/andyzhangx/demo/tree/master/linux/azurefile with static provisioning because I already have fileshare.
1.Created azure-secret with storage name and key.
2.Then edited nginx-pod-azurefile-static.yaml file with my sharename. This is throwing ERROR ".......bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program."

How would I link my local setup with azure fileshare for my pod deployment? I am feeling that I have to change something in mount options.

FYI: I am running docker-desktop on windows machine with WSL2 enabled

@andyzhangx
Copy link
Owner

I think first you should make sure mount -t cifs ... works on your local env, it requires cifs-utils package

@AvinashRamireddy31
Copy link
Author

Yes, I am trying to mount using cifs-utils. Found really interesting article on that.

But problem is I need to install cifs-utils inside docker-dekstop kubernetes node (shell).
I tried to node shell using Lens and getting below error.

image

Looks like it's root/sudo previleges issue. I am not sure what command I should use to node exec with privileges. Lens didn't provide how it's _exec_ing into the node.

So how would I exec into the node and install cifs-utils in docker-desktop kubernetes?

@andyzhangx
Copy link
Owner

I am not familiar with docker-desktop kubernetes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants