openfaas / faas

OpenFaaS - Serverless Functions Made Simple
https://www.openfaas.com
MIT License
25.12k stars 1.93k forks source link

Proposal: "Serverless Inc. framework plugin" for OpenFaaS #71

Closed alexellis closed 5 years ago

alexellis commented 7 years ago

Serverless Inc framework provides a CLI / abstraction to public cloud, but they do not appear to have any Docker or Swarm backed providers.

Related: https://github.com/alexellis/faas/issues/58

Help wanted from community.

Research:

Run a spike / PoC to integrate with serverless project:

Repo & skeleton created:

Goals:

alexellis commented 7 years ago

Documentation from Serverless project on creating new provider was sparse. I was able to bootstrap the framework, but it requires a PR to their core project due to whitelist of provider names etc.

Parking issue for now in favour of faas-cli YAML - with similar format.

alexellis commented 7 years ago

@aafrey I've re-opened this to track progress.

austinfrey commented 7 years ago

initial commands are functional. I'll have more time to spend on it this weekend to clean things up.

austinfrey commented 7 years ago

I've updated build to be package to be inline with other providers. Also, using the create command would require a PR to serverless to include the OpenFaaS templates, it can't be over-ridden like some of other commands, instead we could use the install command to pull templates from github, rather than using create. this is partly why I lobbied for separate template repos here: https://github.com/alexellis/faas-cli/issues/85 but I'd only really recommend that change if it made the most sense for OpenFaaS across the board. thoughts?

I also added a custom init command to launch the OpenFaaS framework for funsies.

austinfrey commented 7 years ago

summarizing a thread from slack:

any feedback regarding the above is appreciated. cc @alexellis

alexellis commented 7 years ago

Derek add label: priority/low

alexellis commented 7 years ago

I hope to sit down with this next week @aafrey

javajon commented 6 years ago

Just a vote here.

In reviewing Kubeless it is nice to see this serverless.com plugin.

Adding a plugin for OpenFaaS may add more momentum.

(Along the lines of momentum, also a stable helm chart for faas-netes)

austinfrey commented 6 years ago

@javajon. Thanks for the interest. Feel free to give it a try. It needs updated to match certain newer changes but it's functional as an MVP. https://github.com/openfaas/serverless-openfaas

alexellis commented 6 years ago

Hi @javajon, for context about momentum this analysis from The New Stack may be helpful - https://thenewstack.io/aws-lambda-still-towers-competition-much-longer/

There is a stable helm chart in our repository with instructions for how to get started and about available settings/flags. We're also doing the necessary to get it listed "upstream" in the charts repo. If you would like to be involved / help with either please shout.

The serverless framework's CLI is generally slow for every provider. You'll find a richer experience with the OpenFaaS CLI which was built for serverless with containers in mind and in Golang rather than with Cloud providers in mind.

@austinfrey which "newer changes" does it need updating for?

alexellis commented 5 years ago

Derek close: inactivity