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
1
vote
1 answer

Shell into faasd function container

I am working with faasd and I want to troubleshoot my function. I have a connectivity issue from within the function when I try to reach an external server. I can reach the external server from the the host where faasdd is deployed, but not from…
1
vote
2 answers

How to illustrate concurrency benefits using an OpenFaas function?

I am experimenting with OpenFaas and trying to evaluate the performance benefit of having more than workers serve the same function (the default shasum function available from the store). I have a cluster of three 'small'(1vcpu 2gb ram) one 'medium'…
atsag
  • 93
  • 11
1
vote
0 answers

Traffic is not being spread evenly between replicas of OpenFaas functions

As per this documentation, I have configured direct_functions to false, which allows the provider to balance traffic between replicas of OpenFaas functions. But it sends the traffic to only one replica. Without using any service mesh solution how…
1
vote
1 answer

Do Docker Hub image repositories contain the environment variables from .env file?

I am building out my product environments using Docker and want to make sure my secrets and keys are secure. To do so, I would like to use .env files. For convenience sake, I would like to avoid dealing with Docker secrets. For local development I…
Jason
  • 555
  • 6
  • 14
1
vote
1 answer

How does openfaas solve the time zone problem of the container in the pod?

I am currently deploying openfaas on my local virtual machine's kubernetes cluster. I found that the time zone of the container started after publishing the function is inconsistent with the host machine. How should I solve this…
silentao
  • 11
  • 1
1
vote
0 answers

Local Docker registry in K3d and OpenFaas

I am tinkering around with OpenFaas and K3D in order to build a serverless infrastructure for local development. For this to work efficiently I wanted to add a docker registry locally with K3D and have OpenFaas pull images from there, however I am…
khusseini
  • 174
  • 1
  • 7
1
vote
1 answer

Faasd - can't pull image from private registry

I have an application that uses OpenFaaS. In particular, I'm using faasd because the function will run on devices with poor processing capacity. I have a private registry on which an image of an 'X' function is present. I want to pull this image…
gcapi
  • 11
  • 4
1
vote
2 answers

Serverless framework for trigger

I am looking for a serverless framework(free) , where i can create a kafka trigger and when triggered a kube function is to be invoked (python) I have tried nuclio but the problem is that i have kafka version higher and they do not support higher…
1
vote
0 answers

Autoscaling Google cloud kubernetes

We have an app running under a Google Cloud Kubernetes cluster, things are running fine in my testing scenario. We went to set up autoscaling for these pods - we'll probably never need to go to 0, but want it to scale up to (for now) 20 pods, and…
Andy Wallace
  • 299
  • 5
  • 20
1
vote
2 answers

Installing OpenFaas on local Kubernetes cluster

so I'm attempting to install OpenFaaS on a local Kubernetes cluster made with Docker Desktop. I'm brand new to both OpenFaaS and Kubernetes so any help is appreciated! I'm following the interactive tutorial here. I have installed Helm, the OpenFaaS…
user4626554
1
vote
0 answers

Error configuring OpenFaas - can't connect to nats://nats.openfaas.svc.cluster.local:4222

$ kubectl logs queue-worker-5d86f844f-86vg7 -n openfaas --tail=100 -f Loading basic authentication credentials Connect: nats://nats.openfaas.svc.cluster.local:4222 can't connect to nats://nats.openfaas.svc.cluster.local:4222: nats: no servers…
1
vote
1 answer

OpenFaaS Function cannot access Minio

I have OpenFaaS and Minio both deployed on Kubernetes. I am following this tutorial to try to get an OpenFaaS function to interact with Minio buckets: https://blog.alexellis.io/openfaas-storage-for-your-functions/ However, whenever I try to invoke…
kd2amc
  • 39
  • 8
1
vote
1 answer

How to get size of NATS Streaming Queue?

Background: I'm going to be doing some experiments with OpenFaaS (running in Kubernetes) where I will be invoking several asynchronous execution requests. OpenFaaS uses NATS Streaming to queue these requests for asynchronous function execution.…
kd2amc
  • 39
  • 8
1
vote
1 answer

Set quota for pods with the same namespace for Openfaas with Kubernetes

I deploy some functions using Openfaas over Kubernetes. Openfaas function is using openfaas-fn namespace which I can set quota for. The question is how if I want to group functions (kind of labeling) and set quota for each group of functions.…
Amir Movahedi
  • 1,802
  • 3
  • 29
  • 52
1
vote
0 answers

Kill background process started from the same bash script

I want to automate a deployment which includes starting a Minio server. However, when I start the Minio server with minio server myserver there is a process running which I usually would kill with Ctrl+C and go on with the next steps of the…
nymvno
  • 370
  • 5
  • 19