-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add mount nfs server support to function container #1232
Comments
@alexellis could you please help it? Any way i can workaround it? |
Please can you fill out the whole issue template? We'll need all the information to make a decision. |
|
My actions before raising this issue
We have a lot of utilities and libraries stored in an internal NFS server which is maintained by other teams. To write a function, we need to call some libraries from the NFS server. But looks like current function container does not support to mount external NFS server to the container. Expected BehaviourAble to mount external NFS server to function container. The function can call some libraries/binaries from the NFS server since the function relies on the libraries/binaries. Current BehaviourUnable to mount external NFS server. The libraries in the NFS server is maintained by different team which does not use OpenFaaS framework, so the function cannot call it directly unless mounting the NFS server to the container Possible SolutionNo workaround solution. I'm fully blocked by it to use OpenFaaS in my project. ContextWithout the feature, I'm unable to write some functions which depends on other libraries which are stored in NFS server and maintained by other teams. Your Environment
Server: Docker Engine - Community
|
Thanks @alexellis for the quick response. Just update the issue template. Thanks a lot. |
You must fill in everything. Looks like you missed the last section. |
Updated @alexellis :-) |
Can you give a sample and the error you received? |
You could put those libraries in a container image and use that as the base image for your functions. This approach would allow you to version the libraries and migrate your functions independently between versions. Another advantage would be that the docker engine caches the image layers on each node. Even if the base image is larger it will be downloaded once per node. |
I'd like to see the error. Does this involve mounting a filesystem for instance? |
@stefanprodan Since the libraries are stored in external NFS server, and they linked to different libraries in the same NFS server. I cannot just extract part of libraries from the NFS server and move them into base image. Also the utitlie libraries are maintained by other teams, the libraries are updated frequently. To keep to use the latest stable libraries, we need to mount the NFS server as a volume in the container. Then access the libraries in the function. |
@alexellis there's no way to mount external NFS server as a volume to function container, so no any error. I'm blocked by how I can access the libraries stored in the NFS server. To implement the function, I need call the libraries to access internal resources. |
At this time we have no plans to add volume mounts for function containers. Please see the following related issue: #320 That said, I think we could still help you. The storage story for functions is normally to utilise SQL, no-sql or s3 (for instance AWS, Ceph, or Minio). I would suggest that you set up a Minio server and have it mirror the NFS server. This way your function can pull in whatever it requires from S3 using the API when it starts up or on demand. Here's an example blog post and tutorial for you: https://blog.alexellis.io/openfaas-storage-for-your-functions/ You may also find that functions are not appropriate for your use-case, in which case you may want to look into: I'll close the issue now, but feel free to comment. Alex |
/add label: wontfix |
Thanks @alexellis . Does jaas suppor to run against kubernetes? |
We have a lot of utilities and libraries stored in an internal NFS server which is maintained by other teams. To write a function, we need to call some libraries from the NFS server. But looks like current function container does not support to mount external NFS server to the container.
I'd like to request this feature support since I'm only blocked by this feature to use OpenFaaS in my project. Thanks a lot.
The text was updated successfully, but these errors were encountered: