

GitHub - openfaas/faas-netes: Serverless Kubernetes with OpenFaaS (Functions as...
source link: https://github.com/openfaas/faas-netes
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
faas-netes
This is a plugin to enable Kubernetes as an OpenFaaS backend. The existing CLI and UI are fully compatible. It also opens up the possibility for other plugins to be built for orchestration frameworks such as Nomad, Mesos/Marathon or even a cloud-managed back-end such as Hyper.sh or Azure ACI.
OpenFaaS also runs well on managed Kubernetes services like AKS and GKE. See our list of tutorials in the documentation site for more.
Watch a video demo from TechFieldDay Extra at Dockercon
OpenFaaS is an event-driven serverless framework for containers. Any container for Windows or Linux can be leveraged as a serverless function. OpenFaaS is quick and easy to deploy (less than 60 secs) and lets you avoid writing boiler-plate code.
In this README you'll find a technical overview and instructions for deploying FaaS on a Kubernetes cluster. (Docker Swarm is also supported in the main project)
- Serverless framework for containers
- Native Kubernetes integrations (API and ecosystem)
- Built-in UI
- YAML templates & helm chart
- Over 11k GitHub stars
- Independent open-source project with over 90 authors/contributors
Get started
How is this project different from others?
Reference guide
Configuration via Environmental variables
FaaS-netes can be configured via environment variables.
Option Usageenable_function_readiness_probe
Boolean - enable a readiness probe to test functions. Default: true
write_timeout
HTTP timeout for writing a response body from your function (in seconds). Default: 8
read_timeout
HTTP timeout for reading the payload from the client caller (in seconds). Default: 8
image_pull_policy
Image pull policy for deployed functions (Always
, IfNotPresent
, Never
. Default: Always
Readiness checking
The readiness checking for functions assumes you are using our function watchdog which writes a .lock file in the default "tempdir" within a container. To see this in action you can delete the .lock file in a running Pod with kubectl exec
and the function will be re-scheduled.
Namespaces
By default all OpenFaaS functions and services are deployed to the openfaas
and openfaas-fn
namespaces. To alter the namespace use the helm
chart.
Ingress
To configure ingress see the helm
chart. By default NodePorts are used. These are listed in the deployment guide.
Image pull policy
By default, deployed functions will use an imagePullPolicy of Always
, which ensures functions using static image tags are refreshed during an update.
If this is not desired behavior, set the image_pull_policy
environment variable to an alternative. IfNotPresent
is particularly useful when developing locally with minikube.
In this case, you can set your local environment to use minikube's docker so faas-cli build
builds directly into minikube's image store.
faas-cli push
is unnecessary in this workflow - use faas-cli build
then faas-cli deploy
.
Note: When set to Never
, only local (or pulled) images will work. When set to IfNotPresent
, function deployments may not be updated when using static image tags.
Recommend
-
158
OpenFaaS ® - Serverless Functions Made Simple OpenFaaS® makes it easy for developers to deploy event-driven functions and microservices to Kubernetes without repetitive, boiler-plate coding. Package your code or an existing binary in an O...
-
110
FaaS 是一种新兴的技术平台,个人认为 2018 年即将迎来 FaaS 的崛起。本文给大家提供一个 Serverless/FaaS 的现状与未来的报告,也作为自己的年度技术总结。本文首发 gitchat。 什么是 Serverless/FaaS Serverless(...
-
45
Going Serverless with OpenFaaS and Golang — The Ultimate Setup and Workflow
-
5
K3S, yeah… it’s even harder to pronounce than k8s isn’t it? Well, I’m not going to use this post to talk about the name, but rather the actual thing. What is k3s?Permali...
-
26
Survival guide to Serverless and FaaS (Function-as-a-Service)
-
7
Cloudflare Workers - the best serverless FaaS platform? Arek Nawo | 11 Mar 2021 | 7 min read When you hear the word “se...
-
5
Serverless with OpenFaaS and .NET
-
14
PaaS .. Platform as a Service. FaaS .. Function as a Service. Serverless .. There will be a server. Just a Long Introduction Let’s start with IaaS first .. yes it’s not in the ti...
-
7
Deploy OpenFaaS Serverless Framework on KubernetesWelcome to this guide on how to deploy OpenFaaS Serverless Framework on Kubernetes. But before we commence on the crux of this tool, I would like to explain a few concepts.Serverless is...
-
6
Building Our E-Commerce Platform With Serverless FaaS In...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK