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 Apache OpenWhisk on Kubernetes

Now that we have an idea of how to interact with Apache OpenWhisk and the basic concepts behind it, we can look at deploying a copy on top of a Kubernetes cluster. To do this, I am going to launch a three-node cluster in Google Cloud by running the following:

$ gcloud container clusters create kube-cluster

Once the cluster is up-and-running, you can check that you can see three nodes by running the following:

$ kubectl get nodes

Now we have our Kubernetes, we can progress with the Apache OpenWhisk deployment.

Deploying OpenWhisk

All of the configuration needed to deploy Apache OpenWhisk on Kubernetes is available on GitHub, so before we start our deployment we should clone the repository...