openfaas / openfaas-cloud

The Multi-user OpenFaaS Platform
https://docs.openfaas.com/openfaas-cloud/intro/
MIT License
770 stars 228 forks source link

Expose a manually deployed function to the cloud #409

Open burf2000 opened 5 years ago

burf2000 commented 5 years ago

So functions need to be manually deployed (e.g docker images) etc but they are then not accessible via the cloud UI, only the OpenFaas Dashboard UI which runs on a different port

Expected Behaviour

A manually deployed function to OFC appears in the Cloud UI

Current Behaviour

It appears in the normal OF dashboard, but not the Github Cloud UI

Possible Solution

Steps to Reproduce (for bugs)

A suggestion would be to add a stack.yml config to help support manually deployed functions or A setting to allow Docker Images in OFC

Context

Your Environment

Ubuntu 16.04, K8, Latest Docker

alexellis commented 5 years ago

I would do it like this:

https://github.com/openfaas/openfaas-cloud/tree/master/dashboard#deploy-a-few-functions-for-sample-data

Does that help?

Alex

martindekov commented 5 years ago

Hey @burf2000 If we implement this, I think there is no problem from UI standpoint to scrape all functions which are provided in the gateway REST endpoint and just show them, but I think this would break most if not content related with github/gitlab that we currently output.

Another way would be to implement specific dashboard for OpenFaaS native functions?

Does what Alex suggested works for you? I think it might be a good thing to add some description to that comment in README.md.

alexellis commented 5 years ago

Just duplicate the README instructions from the dashboard folder. It shows how to do this.

alexellis commented 5 years ago

https://github.com/openfaas/openfaas-cloud/tree/master/dashboard#deploy-a-few-functions-for-sample-data