OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports...
Transcript of OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports...
OpenFaaS InstallationCloud Computing SS19
Alexander SengAlexander TkachovSebastian MüllerMarcus Legendre
1/14 Alexander Seng, Alexander Tkachov, Sebastian Müller, Marcus Legendre | OpenFaaS Installation | Cloud Computing SS19 June 19, 2019
Agenda
Introduction
Architecture & Components
Production-like environment (Part1)
Local development environment
Test environment
Production-like environment (Part2)
Wrap Up
2/14 OpenFaaS Installation | Cloud Computing SS19
IntroductionWhat is Serverless Computing?
Concept of developing and running applications without havingto worry about servers.Also known as Function as a Service (FaaS).Promises virtually infinite scaling with zero configuration.Layer of abstraction for developers.Layer of abstraction for operations.There are still servers behind that layer.
3/14 OpenFaaS Installation | Cloud Computing SS19
IntroductionWhat is OpenFaaS
Framework for running your own serverlesscomputing plattform.Free and open-source (MIT license).Runs through Docker Swarm orKubernetes.Supports any programming language thatcan run in a container.Comes with container templates for manypopular programming languages.
4/14 OpenFaaS Installation | Cloud Computing SS19
Architecture & Components
Figure: OpenFaaS ArchitectureSource: https://docs.openfaas.com/architecture/gateway/
5/14 OpenFaaS Installation | Cloud Computing SS19
Production-like environmentKubernetes
Leading container orchestration software.Free and open-source (Apache 2.0 license).Comes with vertical scaling capabilities by default.Optional horizontal scaling (cluster auto scaling).Can be set up for high availability.
6/14 OpenFaaS Installation | Cloud Computing SS19
Production-like environmentOur technology and tool stack
Terraform (infrastructure as code)Microsoft Azure (cloud provider)Azure Kubernetes Service (managed Kubernetes cluster)Helm (Kubernetes package manager)OpenFaaS
« Live Demo »
7/14 OpenFaaS Installation | Cloud Computing SS19
Local development environmentDocker-Swarm
Idea: Run OpenFaaS on your development machine inside DockerSwarm to develop and test functions
Advantages of that:No additional hardware requiredSimple and fast setupSingle user
8/14 OpenFaaS Installation | Docker-Swarm
Local development environmentWhat we will do
Create a Docker SwarmDownload and start OpenFaaSDeploy a function from the storeWrite, build and deploy a new functionDeploy a function from Docker Hub
« Live Demo »
9/14 OpenFaaS Installation | Docker-Swarm
Test environmentBare metal & virtual machines
Test environment created with virtual machineseasy exportation and running on different hostssimple troubleshooting in case of malfunctionDocker swarm as orchestration softwarePossible Setups: All VMs on one Physical host, all VMs ondifferent Physical hostssimulation of an own physical cluster
10/14 OpenFaaS Installation | Docker-Swarm
Test environmentVM setups
11/14 OpenFaaS Installation | Docker-Swarm
Production-like environmentKubernetes
« Continuation Live Demo »
12/14 OpenFaaS Installation | Docker-Swarm
Production-like environmentKubernetes
OpenFaaS running in the cloud.Highly scalable.SSL ready.Lacks monitoring, alerting, backups, disaster recovery.
13/14 OpenFaaS Installation | Docker-Swarm
Wrap Up
Thanks for your attention!Questions?
14/14 OpenFaaS Installation | Docker-Swarm