openfaas-cloud icon indicating copy to clipboard operation
openfaas-cloud copied to clipboard

Expose a manually deployed function to the cloud

Open burf2000 opened this issue 5 years ago • 4 comments

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

burf2000 avatar Feb 25 '19 14:02 burf2000

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

alexellis avatar Feb 28 '19 20:02 alexellis

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.

martindekov avatar Mar 15 '19 21:03 martindekov

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

alexellis avatar Mar 26 '19 20:03 alexellis

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

alexellis avatar Mar 26 '19 20:03 alexellis