fonk-apps / fonk-examples

Web application examples using FaaS/Object Storage/NoSQL on K8S
38 stars 6 forks source link

Guestbook/fn/Nodejs #2

Open nerdguru opened 6 years ago

nerdguru commented 6 years ago

Dibs. Starting this one 9/13/18 based on these k8s install instructions:

https://medium.com/fnproject/fn-project-helm-chart-for-kubernetes-e97ded6f4f0c

and this tutorial, which upon first reading looks like it's easy to bundle modules:

https://github.com/fnproject/tutorials/tree/master/node/intro

nerdguru commented 6 years ago

Blocked on CORS support, question out on the fn Slack channel.

nerdguru commented 6 years ago

Got an answer, it's an option here: https://github.com/fnproject/docs/blob/master/fn/operate/options.md

And it looks like you can set these via a values.yml for a Helm install:

https://github.com/fnproject/fn-helm/blob/master/fn/values.yaml

Will try out soon . . .

nerdguru commented 6 years ago

Turns out, the new FDK approach the fn team is taking fixes this, but I ran into issues with the Node.js implementation of it on K8S. See:

https://github.com/fnproject/fdk-node/issues/18