
Photo by Kier in Sight Archives on Unsplash
Serverless applications with OpenFaaS
Doing Without
In the rapidly evolving world of software development, one of the most transformative shifts in recent years has been the rise of serverless computing. This approach allows developers to focus on building and deploying code without having to worry about the underlying infrastructure. OpenFaaS (function as a service) [1] is a popular open source framework that enables serverless functions on any infrastructure, including public cloud environments, private data centers, or even on-premises Linux servers.
Environment Setup
Before diving in, ensure you have the following prerequisites in place:
- Ubuntu Server: an on-premises machine or cloud virtual machine (VM) running Ubuntu (20.04 LTS or later is recommended) with sudo privileges.
- Kubernetes cluster: OpenFaaS runs on Kubernetes, so you need access to a Kubernetes cluster.
- Docker: to build and push container images for your serverless functions. Install Docker on your Ubuntu machine (if using MicroK8s, Docker is optional because it uses containerd, but having Docker is useful for the OpenFaaS command-line interface (CLI)).
- OpenFaaS CLI:
faas-cli
for managing functions. The quickest way to install it on your machine is with the OpenFaaS-provided script (Figure 1):
curl -sSL https://cli.openfaas.com | sudo sh...
Buy this article as PDF
(incl. VAT)
Buy ADMIN Magazine
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Most Popular
Support Our Work
ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.
