Skip to Content
Knative Cookbook
book

Knative Cookbook

by Burr Sutter, Kamesh Sampath
April 2020
Intermediate to advanced
158 pages
3h 6m
English
O'Reilly Media, Inc.
Content preview from Knative Cookbook

Chapter 2. Understanding Knative Serving

Knative Serving is ideal for running your application services inside Kubernetes by providing a more simplified deployment syntax with automated scale-to-zero and scale-out based on HTTP load. The Knative platform will manage your service’s deployments, revisions, networking, and scaling.

Knative Serving exposes your service via an HTTP URL and has a lot of safe defaults for its configurations. For many practical use cases you might need to tweak the defaults to your needs and might also need to adjust the traffic distribution among the service revisions. Because the Knative Serving Service has the built-in ability to automatically scale down to zero when not in use, it is appropriate to call it a serverless service.

In this chapter, we are going to deploy a Knative Serving Service, see its use of Configuration and Revision, and practice a blue-green deployment and Canary release.

Knative Serving Deployment Model

Before you deploy your first serverless service, it is important that you understand its deployment model and the Kubernetes resources that make up a Knative Service.

During the deployment of a Knative Serving Service (ksvc) as shown in Figure 2-1, the Knative Serving controller creates a Configuration, a Revision, and a Route, which deserve additional explanation:

Knative Configuration

The Knative Configuration maintains the desired state of your deployment, providing a clean separation of code and configuration using the twelve-factor ...

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

GitOps Cookbook

GitOps Cookbook

Natale Vinto, Alex Soto Bueno
Quarkus Cookbook

Quarkus Cookbook

Alex Soto Bueno, Jason Porter
Kubernetes Cookbook

Kubernetes Cookbook

Sébastien Goasguen, Michael Hausenblas

Publisher Resources

ISBN: 9781492061182Errata Page