Questions tagged [openfaas]

OpenFaaS (Functions as a Service) is a framework for building serverless functions with Docker and Kubernetes which has first class support for metrics. Any process can be packaged as a function enabling you to consume a range of web events without repetitive boiler-plate coding.

OpenFaaS is a framework for building serverless functions on the top of containers through the use of Docker and Kubernetes. With OpenFaaS, serverless functions can be managed anywhere with the same unified experience. This includes on the user's laptop, on-premises hardware, or by creating a cluster in the cloud.

You can find Function templates for various programming languages in their templates GitHub repository.

81 questions
5
votes
3 answers

Enable use of images from the local library on Kubernetes

I'm following a tutorial https://docs.openfaas.com/tutorials/first-python-function/, currently, I have the right image $ docker images | grep hello-openfaas wm/hello-openfaas latest …
5
votes
3 answers

how to return HTTP status code in Open FaaS?

How can a function deployed in openfaas return different HTTP status code to the caller? Like 4xx codes. As per documentation, the watchdog would process the stdout or stderr for either a http status 200 or 5xx. Is there a way to change the status…
Ajaxe
  • 647
  • 1
  • 5
  • 16
4
votes
1 answer

OpenFaaS : Receiving Timeout errors during health check of function Pod

Issue: We have added health check configuration to our function. However pod becomes Unhealthy due to timeout error in liveness and readiness checks and consequently getting restarted. However if I hit same health check url using CURL or browser it…
Sandeep
  • 71
  • 1
  • 1
  • 3
4
votes
0 answers

How to using typescript with openfaas handler?

I'm using openfaas for the first time. I followed by this guide. The cli creates handler.js file. Is it possible to working with typescript? creates typescript file instead of javascript file?
Jon Sud
  • 10,211
  • 17
  • 76
  • 174
4
votes
0 answers

How does open-faas deployed on kubernetes determine when to scale a function up or down?

In Kubernetes, I am a little unclear of what criteria needs to be met for open-faas to scale a function's replicas up or down. According to the documentation: Auto-scaling in OpenFaaS allows a function to scale up or down depending on demand…
northsideknight
  • 1,519
  • 1
  • 15
  • 24
3
votes
0 answers

OpenFaaS faasd function deployed but the URL fails with the message "cannot find service"

I followed this tutorial for faasd. https://github.com/openfaas/faasd/blob/master/docs/MULTIPASS.md I was able to deploy my function in Clojure successfully, but the URL returned shows the message of Cannot find service: mybot.openfaas-fn. And when…
vchannn
  • 31
  • 3
3
votes
1 answer

Getting ImageInspectError when trying to run an OpenFaas function on Raspberry Pi 3B+

I'm trying to deploy a function with OpenFaas project and a kubernetes cluster running on 2 Raspberry Pi 3B+. Unfortunately, the pod that should handle the function is going to ImageInspectError state... I tried to run the function with Docker…
Gallouche
  • 31
  • 1
  • 2
2
votes
2 answers

Deploy FastAPI microservice in Kubernetes via OpenFaaS

I have a big application structured with FastAPI (with many routers), that runs in AWS Lambda. I want to migrate it to a container inside Kubernetes. From my research, OpenFaaS is a great solution. However I can't find documentation about how to do…
Bemojo
  • 96
  • 9
2
votes
1 answer

Deploy Spring Cloud Function to OpenFaaS

Spring Cloud Function is a way to write serverless functions with Spring Boot. There are only adapters for AWS, Azure, etc. but no way to deploy to OpenFaaS yet. How do I deploy a Spring Cloud Function to OpenFaaS?
Klaus
  • 1,080
  • 2
  • 10
  • 27
2
votes
0 answers

How to make faasd secrets available to function using node12 template?

While writing this question I found the answer, but still it might be helpful to someone else that start using node12 template model for making functions on openfaas and needs accessing secrets defined using faas-cli. By creating a function for…
2
votes
1 answer

OpenFaas - Request Entity Too Large

I have deployed openfaas through helm using the following command helm upgrade openfaas --install openfaas/opehelmnfaas --namespace default --set functionNamespace=default --set generateBasicAuth=true Everything is working properly but when I…
Louie Bafford
  • 53
  • 1
  • 6
2
votes
0 answers

Openfaas call one function from another in Multi-stage

I have followed these two documents openfaas workshop ,multi-stage implementing openfaas functions on Kubernetes. Part of multi-stage article says: Note that the above configuration will prohibit functions from calling each other or from reaching…
Amir Movahedi
  • 1,802
  • 3
  • 29
  • 52
1
vote
1 answer

what is the difference between the serverless function instance and the container instance?

I'm new to serverless computing, and I have questions about serverless functions concurrency. Some open-source serverless platforms like OpenWhisk OpenFaas deeply function using docker containers. These functions can scale up and scale down based on…
sako
  • 29
  • 5
1
vote
1 answer

when i call another function in faas, I get an error like 'this function not published'

How can i import and use faas function in another faas function in express.js? const { UnsplashApi } = require('../image-api-graphql/data/unsplashApi');
1
vote
0 answers

Do Node openfaas functions require a package.json in the deployment bundle?

Looking at openfaas Node templates there is a pattern of having a nested package.json in the functions folder. Seeing a nested package.json file (location other than the root) in a non-monorepo npm package is code smell to me and causes some dev…
Brian Ogden
  • 18,439
  • 10
  • 97
  • 176
1
2 3 4 5 6