faas-nomad
faas-nomad copied to clipboard
Question: Feasible to support volume mounts?
The request for Openfaas to directly allow volume mount options has been met with resistance (i.e. github.com/openfaas/faas/issues/320). But I wanted to know whether it would be a possibility for this provider plugin to extend access to the Nomad Job group settings in a way that volume and volume mount options could be passed in? Maybe through annotations? I figured if Openfaas wants to remain opinionated that a user should not be allowed to use mounts in a function, that is no reason that Nomad couldn't still remain flexible to the needs of users.
Thoughts?
For context, I have been evaluating different faas frameworks for a solution on top of k8s. But Nomad seems to suit some challenges at my studio. I was moving down the path of using Fission on k8s but now want to see whether Nomad can be an option, and reconsider using openfaas again (was my first choice) if volume mounting is no longer a problem.
I think this is a perfectly reasonable feature request and could technically work in a couple of different ways. The official Nomad team has made some updates to volumes in the latest versions with host_volume
and csi (beta), so the implementation could make use of these options as well.
On a broader note, faas-nomad hasn't seen a lot of usage or support from either OpenFaaS or HashiCorp which is why updates to this provider have stalled. Having said that, if there is interest in this provider from the broader community, I'd be happy to reengage, but I'm unsure how to measure that.
Thanks for the reply! Shame to hear the project isn't widely used. I wouldn't then expect you to invest a bunch of time in this feature unless it is going to benefit others. Although it seems enough people have asked for Openfaas volume mount support that maybe it's worth engaging to see how many openfaas users could consume this feature of it were offered through nomad?
Anyways, I will keep an eye on this ticket, since we are going to invest some time in testing nomad soon.