Skip to content

sumanentc/openfaas-sample-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Serverless Function using OpenFaas Templates

  • python3-sample is a sample function written in python3 using python3 template To deploy the function we need to execute the below commands
export OPENFAAS_PREFIX=sumand
faas-cli up -f python3-sample/python-hello-world.yml

To invoke the function we need to run the below commands


curl http://127.0.0.1:8080/function/py-hello-world --data-binary '{ "name": "Suman", "greeting": "Hello" }'

export OPENFAAS_PREFIX=sumand
faas-cli up -f dockerfile-sample/sample-flask-service.yml

curl http://127.0.0.1:8080/function/sample-flask-service/api/items

About

Sample Serverless Function using OpenFaas Templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published