4 Routes

This chapter covers

  • Using kn to inspect Routes
  • Using kn to update Routes by updating Services
  • The anatomy of Routes

It seems like only pages ago that I was extolling the virtues of history and of Knative’s ability to juggle it a bit with Revisions. And I wasn’t wrong. But by itself, this is just an exercise in decorative bookkeeping. I need my Revisions to do something.

In Knative Serving, this brings us to Routes. These are the way you can describe to Knative how to map from an incoming HTTP request to a specific Revision. In this chapter, my focus is going to be on the business of what you can ask Knative to do. I’ll pay much less attention to how Knative does the network magic.

So what is a Route? Briefly, a Route is where you ...

Get Knative in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.