Book Image

Kubernetes for Serverless Applications

By : Russ McKendrick
Book Image

Kubernetes for Serverless Applications

By: Russ McKendrick

Overview of this book

Kubernetes has established itself as the standard platform for container management, orchestration, and deployment. It has been adopted by companies such as Google, its original developers, and Microsoft as an integral part of their public cloud platforms, so that you can develop for Kubernetes and not worry about being locked into a single vendor. This book will initially start by introducing serverless functions. Then you will configure tools such as Minikube to run Kubernetes. Once you are up-and-running, you will install and configure Kubeless, your first step towards running Function as a Service (FaaS) on Kubernetes. Then you will gradually move towards running Fission, a framework used for managing serverless functions on Kubernetes environments. Towards the end of the book, you will also work with Kubernetes functions on public and private clouds. By the end of this book, we will have mastered using Function as a Service on Kubernetes environments.
Table of Contents (13 chapters)

Running OpenFaaS locally

Rather than looking at OpenFaaS on Docker swarm and doing a comparison between running the service on Kubernetes and Docker swarm, we are going to dive straight in and install OpenFaaS on Kubernetes. Like all of the tools we have covered, we are going to need a command-line client, so we are going to start by installing it.

The OpenFaaS command-line client

The OpenFaaS command-line client is available for our three operating systems. Let's work through installing it on each, starting with macOS High Sierra.

As you may have already guessed, we are going to be using Homebrew for this. To install the client, simply run the following command:

$ brew install faas-cli

For Ubuntu 17.04, the CLI can be...