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)

Twitter example

The Kubeless GitHub account has a few more example applications that do something more than printing static content or reposting data you sent. In this example, we are going to look at creating a function that posts to a Twitter account.

The Twitter API

Before we look at launching the function we need to generate keys for our function to be able to authenticate against Twitter and then post to your account. To do this, you need the following:

  • A Twitter account
  • A mobile number registered with the account

If you have them then going to the Twitter application page at https://apps.twitter.com/ will present you with a form to fill in (Application Details)—I used the following information. However, a few...