Kubernetes for Serverless Applications
eBook - ePub

Kubernetes for Serverless Applications

Russ McKendrick, Jeeva S. Chelladhurai, Paul Adamson

Condividi libro
  1. 318 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Kubernetes for Serverless Applications

Russ McKendrick, Jeeva S. Chelladhurai, Paul Adamson

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Transform yourself into a Kubernetes specialist in serverless applications.

Key Features

  • Get hands-on experience in installing, configuring, and using services such as Kubeless, Funktion, OpenWhisk, and Fission
  • Learn how to launch Kubernetes both locally and in public clouds
  • Explore the differences between using services such as AWS Lambda and Azure Functions and running your own

Book Description

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.

What you will learn

  • Get a detailed analysis of serverless/Functions as a Service
  • Get hands-on with installing and running tasks in Kubernetes using Minikube
  • Install Kubeless locally and launch your first function
  • Launch Kubernetes in the cloud and move your applications between your local machine and your cloud cluster
  • Deploy applications on Kubernetes using Apache OpenWhisk
  • Explore topics such as Funktion and Fission installation on the cloud followed by launching applications
  • Monitor a serverless function and master security best practices and Kubernetes use cases

Who this book is for

If you are a DevOps engineer, cloud architect, or a stakeholder keen to learn about serverless functions in Kubernetes environments, then this book is for you.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Kubernetes for Serverless Applications è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Kubernetes for Serverless Applications di Russ McKendrick, Jeeva S. Chelladhurai, Paul Adamson in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Ciencia de la computación e Computación en la nube. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2018
ISBN
9781788626125

Launching Applications Using Fission

Next up we are going to look at Fission. Fission is a fast-growing, serverless framework for Kubernetes and, of the technologies that we have seen in previous chapters, is probably the most versatile. In this chapter we will cover:
  • Who built Fission?
  • Installing the prerequisites
  • Installing, configuring, and running Fission locally
  • Command overview
  • Installing, configuring, and running Fission in the cloud
  • Deploying a few example Fission applications
By the end of this chapter, we will have worked on installing Fission in two different target environments, and also worked through launching several applications.

Fission overview

Fission is an open source serverless application developed by Platform9. It was designed to run on top of Kubernetes as well as take advantage of some core Kubernetes functionality. Platform9 are a managed service provider whose core business is the deployment, management, and support of open source clouds specializing in OpenStack and Kubernetes.
OpenStack is a collection of open source components that make up a fully functional Infrastructure as a Service offering. It provides compute, networking, block storage, object storage, orchestration, and even container service, to name but a few.

The project's goal is to provide support for a number of different hardware vendors, from vanilla x86 hardware to specialized storage solutions, allowing end users to build out their own AWS and Microsoft Azure style offering.
With services such as AWS Lambda and Azure Functions maturing to the point where they are now commonplace in most enterprises, Platform9 saw an opportunity to provide their own Functions as a Service offering.
Being a company who specialize in complex open source solutions, it made sense for them to contribute their work back to the community, and so they released Fission under the Apache License.
The Apache 2.0 License by The Apache Software Foundation allows developers to release their software for free, giving the end user permission to use that software for any purpose, and modify/redistribute it without the end user having to worry about royalties. To ensure that the License is not breached, the end user must preserve the original copyright notice and disclaimer.
This may seem like a strange decision. However, like OpenWhisk, which we covered in the previous chapter, Platform9 have given their customers, and anyone else who wants to start deploying Function as a Service (FaaS), a solid foundation to build their applications on top of. Not only are they giving people the freedom to deploy their workloads wherever they want, they are also able to offer support services for installation and the Fission platform.

Installing the prerequisites

Before we install Fission either locally or in a public cloud we need a few supporting tools. The first tool we have already installed and that is the Kubernetes command-line interface, kubectl. The second tool needed to run Fission, we have not installed yet: Helm (http://helm.sh/).

Installing Helm

Helm is a package manager for Kubernetes and is part of the Cloud Native Computing Foundation, where Bitnami, Google, Microsoft, and the Helm community all contribute to its development.
To install Helm on macOS High Sierra we can use Homebrew; simply run:
$ brew install kubernetes-helm
If you are running Ubuntu Linux then you can download and install Helm using the installation script:
$ curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
Finally, Windows 10 Professional users can download an experimental build of Helm from the canary repository. The direct download link for this build is https://kubernetes-helm.storage.googleapis.com/helm-canary-windows-amd64.zip. As this is an experimental build, I recommend running it directly and not putting it in the system folder.
The next step in installing Helm requires you to have a running Kubernetes cluster, as that is where it is launched. I will include the instructions for installing Tiller, the server component of Helm, later in the chapter.

Installing the Fission CLI

The final command-line tool we need to install is the one for Fission itself. You can install this by running the following on macOS High Sierra:
$ curl -Lo fission https://github.com/fission/fission/releases/download/0.3.0/fission-cli-osx && chmod +x fission && sudo mv fission /usr/local/bin/
For Ubuntu 17.04 you can run:
$ curl -Lo fission https://github.com/fission/fission/releases/download/0.3.0/fission-cli-linux && chmod +x fission && sudo mv fission /usr/local/bin/
Finally, the Windows executable can be downloaded from https://github.com/fission/fission/releases/download/0.3.0/fission-cli-windows.exe. I would recommend using it alongside the executable for Helm rather than installing it in your System32 folder.
Running the following commands should show you the currently installed versions:
$ helm version
$ fissio...

Indice dei contenuti