faas-netes | Serverless Functions For Kubernetes | Function As A Service library
kandi X-RAY | faas-netes Summary
kandi X-RAY | faas-netes Summary
faas-netes - Serverless Functions For Kubernetes with OpenFaaS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of faas-netes
faas-netes Key Features
faas-netes Examples and Code Snippets
Community Discussions
Trending Discussions on faas-netes
QUESTION
I'm following a tutorial https://docs.openfaas.com/tutorials/first-python-function/,
currently, I have the right image
...ANSWER
Answered 2022-Mar-16 at 08:10If your image has a latest
tag, the Pod's ImagePullPolicy
will be automatically set to Always
. Each time the pod is created, Kubernetes tries to pull the newest image.
Try not tagging the image as latest
or manually setting the Pod's ImagePullPolicy
to Never
.
If you're using static manifest to create a Pod, the setting will be like the following:
QUESTION
I have a k8s cluster on which I have installed openfaas in the following way:
...ANSWER
Answered 2021-Feb-08 at 09:27The OpenFaas is equiped with autoscaler itself with its own alert manager:
OpenFaaS ships with a single auto-scaling rule defined in the mounted configuration file for AlertManager. AlertManager reads usage (requests per second) metrics from Prometheus in order to know when to fire an alert to the API Gateway.
After some reading I found out that OpenFaas autoscaler/alertmanger is more focused on API hit rates whereas Kubernetes HPA is more focused on CPU and memory usage so it all depends on what you exactly need.
So you have two different annotations for two different tools for scaling.
The deployment.kubernetes.io/max-replicas=2
is for Kubernetes HPA and com.openfaas.scale.max: 1
is for the OpenFaas autoscaler.
The OpenFaas has a great example of how you can use HPA instead built in scaler. You can also use custom Prometheus metrics with HPA as described here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install faas-netes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page