Each time you update a Knative Service, Knative automatically creates a unique Revision from the updated Configuration object. Revisions let you manage multiple versions of a service simultaneously and control traffic distribution across them. To roll back to a previous version, incrementally redirect traffic from the new Revision to the older one.
Prerequisites
Before you begin, ensure that you have:
-
A Knative Service deployed in your cluster (see Quickly deploy a Knative application)
How it works
When you update a Knative Service, the Configuration object is updated, which triggers the creation of a new, unique Revision. Knative manages traffic distribution across Revisions, letting you assign specific traffic percentages to each one through the console.
Create a revision
-
Log on to the ACK console. In the left-side navigation pane, click Clusters.
-
On the Clusters page, find the cluster you want to manage and click its name. In the left-side navigation pane, choose Applications > Knative.
-
On the Services tab, select the namespace of your Knative Service and click the service name. In the upper-right corner of the details page, click Create Revision.
-
In the Basic Information step, configure the parameters and click Next. For parameter details, see Configure revision parameters.
-
In the Traffic Splitting Settings step, configure the following parameters and click Create.
Parameter Description Revisions The Revision to route traffic to. A new Revision is created each time the Knative Service is updated. Percent % The percentage of traffic to route to each Revision. The percentages for all Revisions must add up to 100%.
Manage revisions
After creating a revision, go to the Revision Information tab on the Knative Service details page to view or delete revisions.
What's next
To route traffic across multiple Revisions for a canary release, see Deploy a canary release for a Knative Service.