Skip to Content
Kubernetes Cookbook, 2nd Edition
book

Kubernetes Cookbook, 2nd Edition

by Sameer Naik, Sébastien Goasguen, Jonathan Michaux
November 2023
Intermediate to advanced
228 pages
4h 17m
English
O'Reilly Media, Inc.
Content preview from Kubernetes Cookbook, 2nd Edition

Chapter 14. Serverless and Event-Driven Applications

Serverless represents a cloud native paradigm for development, empowering developers to create and deploy applications without the burden of server management. While servers are still part of the equation, the platform abstracts them away from the intricacies of application development.

In this chapter, you will find recipes that show you how to deploy serverless workloads on Kubernetes using the Knative stack.

14.1 Installing the Knative Operator

Problem

You want to deploy the Knative platform to your cluster.

Solution

Using the Knative Operator, you can easily deploy the Knative stack components to your cluster. The operator defines custom resources (CRs), enabling you to easily configure, install, upgrade, and manage the lifecycle of the Knative stack.

To install version 1.11.4 of the Knative Operator from the release page, do this:

$ kubectl apply -f https://github.com/knative/operator/releases/download/
knative-v1.11.4/operator.yaml

Verify that the operator is running:

$ kubectl get deployment knative-operator
NAME               READY   UP-TO-DATE   AVAILABLE   AGE
knative-operator   1/1     1            1           13s

Discussion

Knative is an open source project that develops components for deploying, running, and managing serverless, cloud native applications on Kubernetes. The platform consists of two main components, namely Serving and Eventing.

While the Knative Operator is the preferred method for deploying and configuring the Knative components, alternatively ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Kubernetes Cookbook

Kubernetes Cookbook

Sébastien Goasguen, Michael Hausenblas
Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower
Terraform Cookbook

Terraform Cookbook

Kerim Satirli, Taylor Dolezal
Core Kubernetes

Core Kubernetes

Christopher Love, Jay Vyas

Publisher Resources

ISBN: 9781098142230Errata Page