2 Introducing Knative Serving

 

This chapter covers

  • Deploying a new Service with Knative Serving
  • Updating the Service with Revisions
  • Splitting traffic between Revisions
  • The major components of Serving and what they do

Serving is where I’m going to start you off in Knative, and the coming chapters will take you into a deeper dive on the major concepts and mechanisms. To begin with, I’ll spend this chapter getting you warmed up in two ways.

First, I’m going to actually use Knative. You’ll notice that I ducked and weaved around this in chapter 1. I did walk you through an example and that example was realistic. But it was also intended to whet your appetite for the whole book, and so necessarily, it needed to touch on a lot of points. A hypothetical example with diagrams and narrative is a quick way to do so.

But now, I’m going to put your fingers on a keyboard. We will use the kn CLI tool to deploy some software, change its settings, change its software, and finally, configure traffic. I won’t be doing any YAMLeering. We’ll be trying a purely interactive approach to Knative.

2.1 A walkthrough

2.1.1 Your first deployment

2.1.2 Your second deployment

2.1.3 Conditions

2.1.4 What does Active mean?

2.1.5 Changing the image

2.1.6 Splitting traffic

2.2 Serving components

2.2.1 The controller and reconcilers

2.2.2 The Webhook

2.2.3 Networking controllers

2.2.4 Autoscaler, Activator, and Queue-Proxy

Summary

References

sitemap