Skip to Content
Getting Started with Knative
book

Getting Started with Knative

by Brian McClain, Bryan Friedman
April 2019
Beginner
79 pages
1h 30m
English
O'Reilly Media, Inc.
Content preview from Getting Started with Knative

Chapter 6. Using Knative

With a solid grasp on what components make up Knative, it’s time to start looking at some more advanced topics. Serving offers quite a bit of flexibility in how to route traffic and there are other Build Templates that make building applications easy. It’s even easy to make our own Event Source with just a few lines of code. In this chapter we’ll take a deeper look at these features to see how we can make running our code on Knative even easier.

Creating and Running Knative Services

The concept of a Knative Service was introduced in Chapter 2. Recall that a Service in Knative is the combination of a single configuration plus a collection of Routes. Under the Knative and Kubernetes covers it is ultimately 0 or more containers within a Pod along with the components to make your application addressable. All of this is supported by a routing layer with robust options for traffic policies.

Whether you think of your workload as an application, container, or process, it runs as a Service in Knative. This offers flexibility to handle many scenarios, depending on which assets make up the software. This section provides another alternative that Knative provides you to build and deploy your software.

Using the Cloud Foundry Buildpack Build Template

You saw in Chapter 3 that the Kaniko Build Template lets you build container images using a Dockerfile. This method tasks you with the responsibility of writing and maintaining that Dockerfile. If you prefer to remove ...

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

Knative in Action: Sending and receiving CloudEvents

Knative in Action: Sending and receiving CloudEvents

Jacques Chester
The Hidden Cost of AI-Assisted Creativity

The Hidden Cost of AI-Assisted Creativity

Léonard Boussioux, Anil Doshi, Oliver Hauser, Kartik Hosanagar
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian
Knative Cookbook

Knative Cookbook

Burr Sutter, Kamesh Sampath

Publisher Resources

ISBN: 9781492047025