openfaas installation - cloud computing ss19 · runs through docker swarm or kubernetes. supports...

14
OpenFaaS Installation Cloud Computing SS19 Alexander Seng Alexander Tkachov Sebastian Müller Marcus Legendre 1/14 Alexander Seng, Alexander Tkachov, Sebastian Müller, Marcus Legendre | OpenFaaS Installation | Cloud Computing SS19 June 19, 2019

Upload: others

Post on 04-Oct-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 2: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 3: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 4: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 5: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

Architecture & Components

Figure: OpenFaaS ArchitectureSource: https://docs.openfaas.com/architecture/gateway/

5/14 OpenFaaS Installation | Cloud Computing SS19

Page 6: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 7: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 8: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 9: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 10: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

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

Page 11: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

Test environmentVM setups

11/14 OpenFaaS Installation | Docker-Swarm

Page 12: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

Production-like environmentKubernetes

« Continuation Live Demo »

12/14 OpenFaaS Installation | Docker-Swarm

Page 13: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

Production-like environmentKubernetes

OpenFaaS running in the cloud.Highly scalable.SSL ready.Lacks monitoring, alerting, backups, disaster recovery.

13/14 OpenFaaS Installation | Docker-Swarm

Page 14: OpenFaaS Installation - Cloud Computing SS19 · Runs through Docker Swarm or Kubernetes. Supports any programming language that can run in a container. Comes with container templates

Wrap Up

Thanks for your attention!Questions?

14/14 OpenFaaS Installation | Docker-Swarm